From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,d7aef237e78a8cbd X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-01-04 01:00:15 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!feedme.news.mediaways.net!infeed.is.co.za!feeder.is.co.za!hades.is.co.za!not-for-mail From: "JasperH" Newsgroups: comp.unix.tru64 References: <3c344618$0$225@hades.is.co.za> Subject: Re: Echo script commands back to standard output Date: Fri, 4 Jan 2002 10:59:00 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: <3c356ef7$0$227@hades.is.co.za> NNTP-Posting-Host: 196.35.129.125 X-Trace: hades.is.co.za 1010134775 227 196.35.129.125 Xref: archiver1.google.com comp.unix.tru64:6354 Works fine!! Thanks Adam. "Adam Price" wrote in message news:R7ZY7.41652$ll6.5839336@news6-win.server.ntlworld.com... > > "JasperH" 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 > > >