Changeset 7946
- Timestamp:
- 08/25/06 22:51:50 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/jobmanager
r7944 r7946 107 107 fi 108 108 109 date=`date +%Y/%m/%d` 110 date2=`date +%Y-%m-%d` 111 condordir=$logpath/condor/$date 112 makedir $condordir >> $jmscriptlog 2>&1 113 109 date=`date +%Y-%m-%d` 114 110 echo " committing 1 ${scripts[$i]} to condor" >> $jmscriptlog 2>&1 115 if ! /usr/local/bin/condor_submit -a path=$scriptspath -a prog=${scripts[$i]} -a date=$date 2 -a dir=$condordir$scriptspath/run.condor 2>> $jmerrorlog111 if ! /usr/local/bin/condor_submit -a path=$scriptspath -a prog=${scripts[$i]} -a date=$date -a dir=$runlogpath $scriptspath/run.condor 2>> $jmerrorlog 116 112 then 117 113 date >> $jmerrorlog -
trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher
r7944 r7946 40 40 41 41 path=`dirname $0` 42 date=`date +%Y/%m/%d` 43 date2=`date +%Y-%m-%d` 44 condordir=$logpath/condor/$date 45 makedir $condordir >> $scriptlog 2>&1 42 date=`date +%Y-%m-%d` 46 43 47 44 for i in $@ … … 52 49 fi 53 50 echo " launching $i..." >> $scriptlog 2>&1 54 if ! pid=`/usr/local/bin/condor_submit -a path=$path -a prog=$i -a date=$date 2 -a dir=$condordir$path/run.condor | grep cluster | cut -dr -f2` 2>$errorlog51 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 55 52 then 56 53 echo "condor is not working " >> $errorlog 2>&1 … … 60 57 then 61 58 echo " waiting for $i to be done..." >> $scriptlog 2>&1 62 /usr/local/bin/condor_wait $ condordir/condor-$date2.log $pid >/dev/null 2>$errorlog59 /usr/local/bin/condor_wait $runlogpath/condor-$date.log $pid >/dev/null 2>$errorlog 63 60 fi 64 61 done -
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r7945 r7946 40 40 41 41 runlogpath=$logpath/run/`date +%Y/%m/%d` 42 processlog =$logpath/processlog/process`date +%F`.log42 processlogpath=$logpath/process/ 43 43 44 44 datetime=`date +%F-%H-%M-%S` … … 127 127 makedir $runlogpath 128 128 makedir $processlogpath 129 129 processlog=$logpath/processlog/process`date +%F`.log 130 130 131 131 function printprocesslog
Note:
See TracChangeset
for help on using the changeset viewer.