-
Notifications
You must be signed in to change notification settings - Fork 3
/
CondorSubmitter.csh
executable file
·47 lines (33 loc) · 1.16 KB
/
CondorSubmitter.csh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! /bin/env csh
## Variabe Exec should be set to the absolute path of the runSimu.sh script (should be in same dir as this script)
## set Exec = /yourDIR/runSimu.sh
set Exec =
####### Initialize condor file
echo "" > CondorFile
echo "Universe = vanilla" >> CondorFile
echo "Executable = ${Exec}" >> CondorFile
echo "getenv = true" >> CondorFile
## Output Directory
## Output should point to the dir you wan the error and stdOut files to go (again, likely the same dir as this script)
set Output =
####### Set number of jobs and events per job
set NUMBER = 1
set LIMIT = 10
set NEVENTS = 100000
####### Loop over jobs
while ( "$NUMBER" <= "$LIMIT" )
set OutFile = ${Output}/submitSimu_$NUMBER.out
set ErrFile = ${Output}/submitSimu_$NUMBER.err
set Args = ( $NUMBER $NEVENTS )
echo "" >> CondorFile
echo "Output = ${OutFile}" >> CondorFile
echo "Error = ${ErrFile}" >> CondorFile
echo "Arguments = ${Args}" >> CondorFile
echo "Queue" >> CondorFile
echo Submitting:
echo $Exec $Args
echo "Logging output to " $OutFile
echo "Logging errors to " $ErrFile
@ NUMBER++
end
#condor_submit CondorFile