This is an old revision of the document!
Here's the meaning of useful parameters that we can add in the header of our job scripts.
#$ -N NAME = Names our job in the cluster as specified in NAME #$ -q QUEUE = Automatically sends our job to the specified queue in QUEUE, so we don't need to specify it in the qsub command. #$ -M EMAIL = Sends notifications of the job status to the specified address in EMAIL, according to criteria below #$ -m beas = Send you email of job status (b)egin, (e)rror, (a)bort, (s)suspend
Sample header for some script myscript.sh:
#!/bin/csh # #$ -N parsedisco #$ -M someaddress@uci.edu #$ -m beas #$ -q ttn.q
more info at http://hpc.oit.uci.edu/running-jobs
Another cool thing from SGE is that it automatically creates a log file in the root of your home folder, and leaves two log files, JOBNAME.eJOBID and JOBNAME.oJOBID. 'e' is for error messages and 'o' is for standard output. To create these log files in the directory where you actually make the qsub call, add the following parameter:
qsub foo.sh -cwd
More info at http://www.ics.uci.edu/computing/linux/sge.php