- Home
- /
- Documentation
- /
- Job Submission
- /
- HTCondor Batch System
- /
- Second Test Example
Second Test Example
Prepare a set of subdirectories in your working directory on a shared system (for example in /home/username/condor):
mkdir log
mkdir error
mkdir output
Prepare a file (for example condor_test.sh) with your script to be executed:
#!/bin/bash
hostname
Prepare a job_submission_file, which defines submission parameters. Let’s call it condor.sub.
executable = condor_test.sh
arguments = $(ClusterID) $(ProcId)
output = output/condor1.$(ClusterId).$(ProcId).out
error = error/condor1.$(ClusterId).$(ProcId).err
log = log/condor1.$(ClusterId).log
+MaxRuntime = 100
queue
Submit a job:
condor_submit condor.sub
Check jobs status:
condor_q
Results will appear in directories defined in condor.sub when job finishes.
Later we will provide a little bit more complicated examples how to specify job requirements.