From: "JasperH" <jasperh@debis.co.za>
Subject: Re: Echo script commands back to standard output
Date: Fri, 4 Jan 2002 10:59:00 +0200 [thread overview]
Message-ID: <3c356ef7$0$227@hades.is.co.za> (raw)
In-Reply-To: R7ZY7.41652$ll6.5839336@news6-win.server.ntlworld.com
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
>
>
>
prev parent reply other threads:[~2002-01-04 8:59 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
2002-01-04 8:59 ` JasperH [this message]
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