Submitting Script Jobs
Procedure
- Use PuTTY to log in to the server as the root user.
- Switch to the condor user.
su - condor
- Switch to the /data/examples directory.
cd /data/examples
- Edit the test.sh file.
- Open test.sh.
vi test.sh
- Press i to enter the insert mode and add the following content:
#!/bin/bash for x in {0..10} do echo "This is a test" sleep 5s done - Press Esc, type :wq!, and press Enter to save the file and exit.
- Open test.sh.
- Edit the test.sub file.
- Open test.sub.
vi test.sub
- Press i to enter the insert mode and add the following content:
universe = vanilla executable = ./test.sh output = test.o error = test.e log = test.log should_transfer_files = YES when_to_transfer_output = ON_EXIT Notification = never queue
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open test.sub.
- Run the following command to submit a job:
condor_submit test.sub
- Run the following command to submit a multi-queue job and verify the cluster:
cat test.sub
universe = vanilla executable = ./test.sh output = test.o error = test.e log = test.log should_transfer_files = YES when_to_transfer_output = ON_EXIT Notification = never queue 150
- Run the following command to verify the configuration:
condor_submit test.sub

Parent topic: Verifying HTCondor