The SUN's Sun Grid Engine (SGE) is the utility that users need to utilize to run jobs. No interactive usage is allowed on "lakemead". This page describes some of the features available on SGE and provides some sample scripts.
Basic script file
Users need to create a "script file' which contains a set of commands that the batch utility will interpret to decide where and how to run your job. SGE script commands will be recognized if these two characters are in columns one and two
#$
For example:
#$ N name-of-your-job
will assign a name to your job.
#$ M user-name@email.address.nscee.edu
will tell SGE to send mail to this user at this address
An example sge start script (written for csh/tcsh shell)
#!/bin/csh -f # work in the current working directory #$ -cwd # # name of the job #$ -N simple_job # # send mail at the end of the job #$ -m e # # send mail to user #$ -M jaimeco@nscee.edu # # create error and output files using the current JOB_ID # JOB_ID is assigned by the batch utility (e.g., 155.out) #$ -e $JOB_ID.err #$ -o $JOB_ID.out # echo My job is running on host `hostname` # change dir to the working directory cd /home/`whoami`/Working-dir #run the program time ./my-prog.x |
SGE Script Examples
SGE commands and man pages