To most effectively make use of the disk resources within the cluster, consider the following scenario:
# Create scratch directory on the execution node mkdir /scratch/$PBS_JOBID # Copy data files into scratch directory cp /project/user/datafiles/file1.dat /scratch/$PBS_JOBID # cd into the /scratch directory cd /scratch/$PBS_JOBID # Run your executable, with input and output in the /scratch directory. $HOME/bin/program < file1.dat > file1.out # Copy files back home and cleanup cp file1.dat /project/user/output && \ cd .. && rm -rf /scratch/$PBS_JOBID