Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  • Basic Job Submission
  • Job Script
  • Submitting the job
  • Commonly Used Options

...

That will submit the job with all of the default options. For a parallel job, a parallel environment would need to be specified. This will be covered in more detail in Advanced Job Submission but an example would look like

...

 qsub option
Description 
-VThis imports your current environment to the job. This is set by default. As such, it does not have to be specified but is good to know about.
-N [name]The name of the job. Make sure this makes sense to you. 
-l h_rt=hr:min:secMaximum walltime for this job. You may want to specify this if you think your job may run out of control.
-r [y,n]Should this job be re-runnable (default n)
-pe [type] [num]Request [num] amount of [type] processors.
-cwdDetermines whether the job will be executed from the current working directory. If not specified, the job will be run from the user's home directory.
-SSpecify the shell to use when running the job script.
-e [path]Name of a file or directory for standard error.
-o pathName of a file or directory for standard output.
-j [y,n]Merge the standard error stream into the standard output stream.
-pe [name] [n]

Parallel environment name and number of slots (cores).

-M email addressSet the email address to receive email about jobs. This will most likely be your University of Iowa email address/
-m b|e|a|s|n,...

Specify when to send an email message

'b'     Mail is sent at the beginning of the job.

'e'     Mail is sent at the end of the job.

'a'     Mail is sent when the job is aborted.

's'     Mail is sent when the job is suspended.

'n'     No mail is sent.

The "mail when job is suspended" option does not currently work.

...

Example referencing task ID

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

 

...