| You are here: SillyDog701 > UNIX Guide >SillyDog701 > UNIX Guide > (index) |
Before using a file as a shell script you must change its access permissions so that you have execute permission on the file, otherwise the error message Permission deniedis displayed.
To run the shell script, simply type its name at the prompt. The commands in the script will then execute one at a time as though you were typing them in at the terminal.
To give yourself execute permission for the file containing the script use the command:
chmod u+rwx filename
The +rwx after the u allows you to read, write to and execute the script: no one else has permission to read, write or execute.
To give other users permission to read and execute but not alter the shell script use:
chmod go+rx filename
UNIX Guide home |
search |
index
| Page URL: http://sillydog.org/unix/ [SillyDog701] [Netscape] [MozInfo701] [MacCentre701] [UNIX Guide] [AntTunes701][Forums] [Search] [Change Log] [Feedback] [About Us] [Sitemap] This UNIX Guide maintained by SillyDog701, portion of this Guide is based on UNIXhelp. UNIXhelp is copyright University of Edinburgh. This page was last modified on 14 March, 2006 |
support MozInfo701 and SillyDog701 |