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-03 05:41:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!demon!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail From: "Adam Price" Newsgroups: comp.unix.tru64 References: <3c344618$0$225@hades.is.co.za> Subject: Re: Echo script commands back to standard output X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Thu, 3 Jan 2002 13:36:50 -0000 NNTP-Posting-Host: 80.2.249.83 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 1010065009 80.2.249.83 (Thu, 03 Jan 2002 13:36:49 GMT) NNTP-Posting-Date: Thu, 03 Jan 2002 13:36:49 GMT Organization: ntl Cablemodem News Service Xref: archiver1.google.com comp.unix.tru64:6343 "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