next up previous 405
Next: Making a script executable
Up: Running a script
Previous: Running a script


Shell selection

The first line of your script tells UNIX which shell you want to use. The following selects the C-shell.

     #!/bin/csh
Somewhat perversely, the # is actually the comment character. That's UNIX for you. However, its presence alone starting the first line will normally be sufficient to run a script in the C shell.

Most of the examples in this document are script excerpts, and so do not include the #!/bin/csh.


next up previous 405
Next: Making a script executable
Up: Running a script
Previous: Running a script

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