Job script template
From FarmShare
(Difference between revisions)
(Created page with "<pre> #!/bin/bash # the above line is called a 'hashbang' # # set the name of the job, this will appear in the job listing #$ -N example_job # # # set the maximum memory usage ...") |
|||
Line 1: | Line 1: | ||
+ | This is meant to be a script you can copy and adapt to get up and running quickly. A similar one appears at the bottom of the man page for 'qsub'. | ||
+ | |||
<pre> | <pre> | ||
#!/bin/bash | #!/bin/bash | ||
Line 4: | Line 6: | ||
# | # | ||
- | # set the name of the job | + | # set the name of the job; this will appear in the job listing |
#$ -N example_job | #$ -N example_job | ||
# | # | ||
Line 10: | Line 12: | ||
# | # | ||
# set the maximum memory usage (per slot) | # set the maximum memory usage (per slot) | ||
- | #$ -l | + | #$ -l mem_free=3G |
+ | # | ||
+ | |||
+ | # | ||
+ | # set the number of slots, replace '1' with a larger number if needed | ||
+ | #$ -pe shm 1 | ||
# | # | ||
# | # | ||
- | # set the maximum run time | + | # set the maximum run time, hh:mm:ss, default is 48hrs on FarmShare |
#$ -l h_rt=12:00:00 | #$ -l h_rt=12:00:00 | ||
# | # |
Revision as of 12:24, 28 June 2013
This is meant to be a script you can copy and adapt to get up and running quickly. A similar one appears at the bottom of the man page for 'qsub'.
#!/bin/bash # the above line is called a 'hashbang' # # set the name of the job; this will appear in the job listing #$ -N example_job # # # set the maximum memory usage (per slot) #$ -l mem_free=3G # # # set the number of slots, replace '1' with a larger number if needed #$ -pe shm 1 # # # set the maximum run time, hh:mm:ss, default is 48hrs on FarmShare #$ -l h_rt=12:00:00 # # # send mail when job ends or aborts #$ -m ea # # # specify an email address #$ -M me@stanford.edu # # check for errors in the job submission options #$ -w e /full/path/to_command arg1 arg2 arg3 ... #