A simple Job Script
#!/bin/zsh
#$ -S /bin/zsh
#
#$ -l t=0:30:00
#$ -j y
WORKDIR=/usr1/tmp/$LOGNAME/$JOB_ID
DATADIR=/net/hydra/h1data7
echo using working directory $WORKDIR
mkdir -p $WORKDIR
cp $DATADIR/large_input $WORKDIR
cd $WORKDIR
h1_reco
cp large_out $DATADIR
if [ -s large_out = -s $DATADIR/large_out ]; then
cd; rm -r $WORKDIR
fi
otherwise the default shell would be used
the cpu time limit for this job (t - alias for s_cpu)