Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Testing a shell script - displaying the commands

Status
Not open for further replies.

pjb

Programmer
May 1, 2001
148
US
Is there a way to show the commands of a shell script as they execute?
 
sh -x <script> works on AIX and some other flavours

Alex
 
At the beginning of your script add the following:
set -x

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top