Sample script for a serial job
#!/bin/bash ### specify the queue: #PBS -q defq date ### cd to directory where the job was submitted: cd $PBS_O_WORKDIR echo "----------------" echo "PBS job running on: `hostname`" echo "in directory: `pwd`" echo "----------------" ### run the program: a.out date