Rate This Document
Findability
Accuracy
Completeness
Readability

Submitting Script Jobs

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Switch to the condor user.
    su - condor
  3. Switch to the /data/examples directory.
    cd /data/examples
  4. Edit the test.sh file.
    1. Open test.sh.
      vi test.sh
    2. 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
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Edit the test.sub file.
    1. Open test.sub.
      vi test.sub
    2. 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
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Run the following command to submit a job:
    condor_submit test.sub
  7. 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
  8. Run the following command to verify the configuration:
    condor_submit test.sub