#!/bin/sh # Simple torque/pbs job script to run stata/mp # Request a dual core node. Must do this for stata/mp #PBS -Wx=NODESET:ONEOF:FEATURE:switch10:switch11 # 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 stata/mp, with do-file "example.do" stata-mp -b do example