Use command line to override parameters in the job script
The command line parameters takes precedence of those in the job script.
Example 1
Consider the job script run1.sh
:
#!/bin/bash
#$ -pwd
#$ -l h_data=2G,h_rt=1:00:00
echo 'hello world'
Submission command:
qsub -l h_data=4G run1.sh
results in a job request of:
h_data=4G
(from command line, overriding theh_data
value in the job script)h_rt=1:00:00
(from the job script)
Example 2
Consider the job script run2.sh
:
#!/bin/bash
#$ -pwd
#$ -l h_data=2G,h_rt=1:00:00
echo 'hello world'
Submission command:
qsub -l exclusive,h_rt=2:00:00 run2.sh
results in a job request of:
-l exclusive
: from command line (new)h_data=2G
: from job scripth_rt=2:00:00
: from command line (overriding theh_rt
value in the job script)