#PBS -S /bin/csh #PBS -q sierra #PBS -l rmsnodes=1:4,walltime=1:00:00 #PBS -m abe #PBS -M youremail@address #PBS -j oe #Create execution directory if (! -d /scratch/global/$PBS_JOBID) then echo "making /scratch/global/$PBS_JOBID" mkdir /scratch/global/$PBS_JOBID #Copy the necessary files to the execution dir. cp ~/path/a.out /scratch/global/$PBS_JOBID #Change to execution directory cd /scratch/global/$PBS_JOBID ##Run your job. Note $RMS_NODES and $RMS_PROCS is set by ##your specification in the #PBS -l line. ##Use one of the following prun commands ##For MPI jobs use prun -N $RMS_NODES -n $RMS_PROCS ./a.out > outputfile ##For Shared Memory (including gaussian) use #prun -N $RMS_NODES -n 1 ./a.out > outputfile #Copy files back home and clean up. rm ./a.out cp * ~/path && cd .. && /bin/rm -rf /scratch/global/$PBS_JOBID