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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

testing shell scripts

Status
Not open for further replies.

Ramu66

Programmer
Jun 2, 2004
7
US
What is the way to test a shell script. Actually iam a
java programmer, and recently required to write some
korn shell scripts. I just want to know is there any way
to test a script, before putting it into production.
Also what is the better way to test a script containing
ftp, instead of directly hitting the intended server

Thanks
 
To test a script for syntax:
ksh -n /path/to/script
To execute a script with each executed command displayed:
ksh -x /path/to/script
Anyway: man ksh

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