Commands that are directives to PBS will always begin with
These are how you tell PBS what to do, not comments!
#PBS -N jobname
Set a job name. This will allow you to identify your job in PBS.
#PBS -e jobname.err
#PBS -o jobname.log
Set filenames for PBS to log standard error and standard output.
#PBS -m abe
#PBS -M firstname.lastname@example.org
Send mail to the username following -M, when the event specified with -m happens to the job. ((a)bort, (b)egin, or (e)nd).
#PBS -l nodes=2:dual:athlon
#PBS -l mem=512mb
#PBS -l walltime=02:00:00
Request 2 nodes, with the properties ``dual'' and ``athlon''. This job requests 512 MB of memory, and expects to run for 2 hours.
The remainder of a PBS script is essentially a shell script that runs the commands that make up your job. For example, the rest of a PBS script could be:
echo Running on host `hostname`
echo Time is `date`
echo Directory is `pwd`
Preston M Smith 2005-02-22