Skip to content

Instantly share code, notes, and snippets.

@jdbrice
Created June 13, 2018 17:02
Show Gist options
  • Save jdbrice/c029585038a9909b047fbe4b75efaf28 to your computer and use it in GitHub Desktop.
Save jdbrice/c029585038a9909b047fbe4b75efaf28 to your computer and use it in GitHub Desktop.
Submit jobs to condor easily
#!/bin/bash
# @Author: Daniel
# @Date: 2017-05-12 10:32:53
# @Last Modified by: jdb
# @Last Modified time: 2017-12-18 14:35:13
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
printf "Usage:\n csub.sh exe config nQueue\n"
exit
fi
source /macstar/star1/jdb12/vendor/root5/pro/bin/thisroot.sh
echo $LD_LIBRARY_PATH
wd=`pwd`
echo "pwd: " `pwd`
echo "config: $wd/$2"
cmd1="InitialDir=$wd"
cmd2="Executable=$wd/$1"
cmd3='Arguments='"$wd/$2"' '
echo "==============="
echo $cmd1
echo $cmd2
echo $cmd3
echo "==============="
condor_submit /home/jdb12/bin/blank.condor.submit.sh -append "$cmd1" -append "$cmd2" -append "$cmd3" --queue $3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment