Welcome CisForCookie, the newest member
New user?    Register    Login
http://www.attackprevention.com


Date Submitted: 07/11/05
Hits: 40
Rating: 00000 based on 0 votes

Shell Script Programming



Added by Papergrl

Description: There is only one thing you must have in a shell script and that's a line specifying what interpreter is to be used to interpret this script. This begins with the symbols #! and is followed by the full path to the interpreter, this will usually be "/bin/bash" for bash scripts and "/bin/sh" for bourne shell scripts. Some system administrators may install bash elsewhere ("/usr/local/bin" is common) you can find out where by typing "which bash". So basically the first line of the script should be "#!/bin/bash". In order to run the script you must first give it execute permissions, this is done by typing "chmod u+x scriptname", you only need to do this once per script.

Read the Complete Paper



You don't have permission to post replies.

Please login or register.

Copyright 2008 AttackPrevention