* Echo script commands back to standard output
@ 2002-01-03 11:52 JasperH
2002-01-03 13:36 ` Adam Price
0 siblings, 1 reply; 3+ messages in thread
From: JasperH @ 2002-01-03 11:52 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Echo script commands back to standard output
2002-01-03 11:52 Echo script commands back to standard output JasperH
@ 2002-01-03 13:36 ` Adam Price
2002-01-04 8:59 ` JasperH
0 siblings, 1 reply; 3+ messages in thread
From: Adam Price @ 2002-01-03 13:36 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Echo script commands back to standard output
2002-01-03 13:36 ` Adam Price
@ 2002-01-04 8:59 ` JasperH
0 siblings, 0 replies; 3+ messages in thread
From: JasperH @ 2002-01-04 8:59 UTC (permalink / raw)
Works fine!!
Thanks Adam.
"Adam Price" <adam+usenet@pappnase.co.uk> wrote in message
news:R7ZY7.41652$ll6.5839336@news6-win.server.ntlworld.com...
>
> "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
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-01-04 8:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-03 11:52 Echo script commands back to standard output JasperH
2002-01-03 13:36 ` Adam Price
2002-01-04 8:59 ` JasperH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox