I use scripts a lot to make my life easier. When a script starts with #!/bin/sh it tells Solaris to run the script in a bourne shell. When you put #!/bin/sh -xv as the first line, the shell echos each command to standard output along with the results of executing that command. This works with Korn and Bash shells as well, and makes debugging scripts a much simpler process.
Requires Free Membership to View
SearchSecurity.com members gain immediate and unlimited access to breaking industry news, virus alerts, new hacker threats, highly focused security newsletters, and more -- all at no cost. Join me on SearchSecurity.com today!
Michael S. Mimoso, Editorial DirectorThis was first published in July 2002