Warning, /pfRICH/CondorSubmitter.csh is written in an unsupported language. File is not indexed.
0001 #! /bin/env csh
0002
0003 ## Variabe Exec should be set to the absolute path of the runSimu.sh script (should be in same dir as this script)
0004 ## set Exec = /yourDIR/runSimu.sh
0005 set Exec =
0006
0007 ####### Initialize condor file
0008 echo "" > CondorFile
0009 echo "Universe = vanilla" >> CondorFile
0010 echo "Executable = ${Exec}" >> CondorFile
0011 echo "getenv = true" >> CondorFile
0012
0013 ## Output Directory
0014 ## Output should point to the dir you wan the error and stdOut files to go (again, likely the same dir as this script)
0015 set Output =
0016
0017 ####### Set number of jobs and events per job
0018 set NUMBER = 1
0019 set LIMIT = 10
0020 set NEVENTS = 100000
0021
0022 ####### Loop over jobs
0023 while ( "$NUMBER" <= "$LIMIT" )
0024
0025 set OutFile = ${Output}/submitSimu_$NUMBER.out
0026 set ErrFile = ${Output}/submitSimu_$NUMBER.err
0027
0028 set Args = ( $NUMBER $NEVENTS )
0029 echo "" >> CondorFile
0030 echo "Output = ${OutFile}" >> CondorFile
0031 echo "Error = ${ErrFile}" >> CondorFile
0032 echo "Arguments = ${Args}" >> CondorFile
0033 echo "Queue" >> CondorFile
0034
0035 echo Submitting:
0036 echo $Exec $Args
0037 echo "Logging output to " $OutFile
0038 echo "Logging errors to " $ErrFile
0039
0040 @ NUMBER++
0041
0042 end
0043
0044
0045 #condor_submit CondorFile
0046
0047