Template:Torque Example Script IO

From CSDMS
#! /bin/sh

# Request nodes and processors per node
#PBS -l nodes=1:ppn=1

# Request disk space on compute nodes
#PBS -l file=150gb

# Move to the temporary directory and run job
cd $TMPDIR && my_serial_prog

# Copy output back to home dir before exiting (TMPDIR will be automatically removed when this script exits)
cp $TMPDIR/* $HOME/Output