Changeset 8461 for trunk/MagicSoft/Mars/datacenter/scripts
- Timestamp:
- 04/27/07 17:35:24 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/jobmanager
r8177 r8461 82 82 if echo $q | egrep \(Error\|failed\) 83 83 then 84 echo "WARN condor_q failed" >> $jmscriptlog 2>&184 echo `date`" WARN condor_q failed" >> $jmscriptlog 2>&1 85 85 printprocesslog "WARN condor_q failed" 86 echo `date`" ERRORcondor_q failed" >> $jmerrorlog86 echo `date`" WARN condor_q failed" >> $jmerrorlog 87 87 cont >> $jmscriptlog 2>&1 88 88 fi … … 139 139 if ! /usr/local/bin/condor_submit -a path=$scriptspath -a prog=${scripts[$i]} -a date=$date -a dir=$runlogpath $scriptspath/run.condor 2>> $jmerrorlog 140 140 then 141 echo `date`" ERRORcondor_submit failed" >> $jmerrorlog141 echo `date`" WARN condor_submit failed" >> $jmerrorlog 142 142 echo "condor is not working -> sleeping $errorsleeptime" >> $jmscriptlog 2>&1 143 143 printprocesslog "WARN submitting ${scripts[$i]} to condor failed" -
trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher
r7946 r8461 49 49 fi 50 50 echo " launching $i..." >> $scriptlog 2>&1 51 if ! pid=`/usr/local/bin/condor_submit -a path=$path -a prog=$i -a date=$date -a dir=$runlogpath $path/run.condor | grep cluster | cut -dr -f2` 2>$errorlog 51 pid=`/usr/local/bin/condor_submit -a path=$path -a prog=$i -a date=$date -a dir=$runlogpath $path/run.condor >> $errorlog | grep 'submitted to cluster' | cut -dr -f2` 52 if [ "$pid" = "" ] 52 53 then 53 echo "condor is not working " >> $errorlog 2>&154 printprocesslog " ERRORsubmitting $i to condor failed"54 echo `date`" WARN condor is not working " >> $errorlog 2>&1 55 printprocesslog "WARN submitting $i to condor failed" 55 56 fi 56 57 if ! echo $@ | grep "allatthesametime" >/dev/null 2>$errorlog
Note:
See TracChangeset
for help on using the changeset viewer.