Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example job script, myscript.job

 
#!/bin/sh
# This is a very simple example job script
/Users/jdoe/my_program

Anchor
Submitting the job
Submitting the job

...

Job script example with qsub directive

 
#!/bin/sh
# This is an example script showing how to specify qsub options
#$ -q all.q

 

The "#$ -q all.q" line will look like a comment to the shell interpreter but will be passed as a qsub directive when the job script is submitted to SGE. Any of the qsub options can be specified this way.

...

Example referencing task ID

 
#!/bin/sh
# Example showing how task arrays work
render input$SGE_TASK_ID

 

...