Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "Adam Price" <adam+usenet@pappnase.co.uk>
Subject: Re: Echo script commands back to standard output
Date: Thu, 3 Jan 2002 13:36:50 -0000	[thread overview]
Message-ID: <R7ZY7.41652$ll6.5839336@news6-win.server.ntlworld.com> (raw)
In-Reply-To: 3c344618$0$225@hades.is.co.za


"JasperH" <jasperh@debis.co.za> wrote in message news:3c344618$0$225@hades.is.co.za...
> Hi,
>
> How can I echo back to standard output the commands in a script (ksh), while
> it is being executed?
>
> I just need an easy way of monitoring the progress of the script, without
> doing a "ps" now and then.
>
> Thanks.
>
From man ksh

-x
Execution trace. The shell will display each command after all expansion and before execution preceded by the expanded value of the
PS4 parameter.

So try running the script as
ksh -x SCRIPT

Hope this helps
Adam





  reply	other threads:[~2002-01-03 13:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-03 11:52 Echo script commands back to standard output JasperH
2002-01-03 13:36 ` Adam Price [this message]
2002-01-04  8:59   ` JasperH
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox