Notes on PBS Scripts

One important point to be aware of is that PBS scripts will, by default, be run by the shell that is your login shell. For example, if your login shell is tcsh, your PBS script will be run in tcsh, and should use csh syntax.

You can, however, make your PBS script run in any shell. For example, if you are a tcsh user, but prefer writing scripts in Bourne shell (/bin/sh), you can make the script run in /bin/sh by starting the PBS script with a #! line, like #!/bin/sh. Remember what shell your script is written for, and it'll save many headaches.

Further examples of PBS environment variables, PBS directives, etc. can be found on the WWW at http://amdahl.physics.purdue.edu/pbs/sample.pbs



Preston M Smith 2005-02-22