next up previous 405
Next: Using aliases to run a script
Up: Running a script
Previous: Making a script executable


Executing a script by name

Once your script has execute privilege, thereafter you can run it like this:

     % ./myscript
or if it is situated in directory /home/user1/dro/bin say

     % /home/user1/dro/bin/myscript
would execute your script. This is long-winded if you want to run the the script frequently. To omit the directory path you need to add the current (.) or better, the specific directory to your PATH environment variable.



next up previous 405
Next: Using aliases to run a script
Up: Running a script
Previous: Making a script executable

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