- Home
- /
- Documentation
- /
- Job Submission (Batch System...
- /
- How do I submit...
How do I submit a batch job?
A: First create a job_submission_file. Specify all job requirements including the path to the executable. Then submit your job using the condor_submit command. Each job is identified by a pair of numbers. The first one is the ClusterId, the second one is the ProcId. If you submitt N jobs within one condor_submit command, then the ClusterId will be the same for all of these jobs, but the ProcId will go from 0 for the first job to N-1 for the last job.
The executable must have an executable bit set.
condor_submit job_submission_file
A job_submission_file example:
# --------------------------------------------
# HTCondor Job Submission File
# --------------------------------------------
universe = vanilla
executable = test.sh
arguments = $(ClusterId) $(ProcId)
# stdout, stderr and log files
output = output/test.$(ClusterId).$(ProcId).out
error = error/test.$(ClusterId).$(ProcId).err
log = log/test.$(ClusterId).log
# required resources
request_cpus = 1
request_memory = 5G
request_disk = 20G
+MaxRuntime = 7200
accounting_group = group_auger.user
queue
More detailed information is available at Job Submission File
See job_submission_file examples at Job Submission File Examples