Created
June 13, 2018 17:02
-
-
Save jdbrice/c029585038a9909b047fbe4b75efaf28 to your computer and use it in GitHub Desktop.
Submit jobs to condor easily
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GetEnv = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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