#!/bin/sh # # a very basic script for running a serial job named helloworld using SGE # It is executed by typing: # qsub serialscript # # # Set the default shell to use #$ -S /bin/sh # # Set the name of the batch job #$ -N YourJobNameHere # #$ -cwd export PATH=$TMPDIR:$PATH # this sets the working directory to the current dir cd $SGE_O_WORKDIR # run helloworld, and redirect stout & stderr to a file $SGE_O_WORKDIR/helloworld >& hello.out