next up previous 405
Next: Executing a script by name
Up: Running a script
Previous: Shell selection


Making a script executable

If you want to run your script by name or with an alias, you must make your script executable like this

     % chmod +x myscript
where myscript is your C-shell script. Note that the % is a convention for the shell prompt; you do not type it yourself. You can edit the script without having to make the file executable again.

next up previous 405
Next: Executing a script by name
Up: Running a script
Previous: Shell selection

C-shell Cookbook
Starlink Cookbook 4
Malcolm J. Currie
2006 November 26
E-mail:starlink@jiscmail.ac.uk

Copyright © 2013 Science and Technology Facilities Council