#!/bin/bash # simple TORQUE/PBS job script to run program my_prog # set default resource requirements for job # - these can be overridden on the qsub command line (this is for a 4 hour job) #PBS -l walltime=4:00:00 # Change to directory from which job was submitted. # (The actual name is held in the PBS environment variable $PBS_O_WORKDIR) cd $PBS_O_WORKDIR # Run my_prog taking input from file inputfile and sending output to outputfile my_prog < inputfile > outputfile