Changeset 7936 for trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher
- Timestamp:
- 08/25/06 13:40:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher
r7922 r7936 38 38 scriptlog=$sllogpath/scriptlauncher`date +%F`.log 39 39 40 date>> $scriptlog 2>&140 echo `date`": starting $0 $@" >> $scriptlog 2>&1 41 41 42 42 path=`dirname $0` … … 44 44 date2=`date +%Y-%m-%d` 45 45 condordir=$logpath/condor/$date 46 makedir $condordir 46 makedir $condordir >> $scriptlog 2>&1 47 47 48 48 for i in $@ … … 52 52 continue 53 53 fi 54 echo " launching $i..." >> $scriptlog 2>&154 echo " launching $i..." >> $scriptlog 2>&1 55 55 pid=`/usr/local/bin/condor_submit -a path=$path -a prog=$i -a date=$date2 -a dir=$condordir $path/run.condor | grep cluster | cut -dr -f2` 2>$errorlog 56 56 if ! echo $@ | grep "allatthesametime" >/dev/null 2>$errorlog 57 57 then 58 echo " waiting for $i to be done..." >> $scriptlog 2>&158 echo " waiting for $i to be done..." >> $scriptlog 2>&1 59 59 /usr/local/bin/condor_wait $condordir/condor-$date2.log $pid >/dev/null 2>$errorlog 60 60 fi 61 61 done 62 62 echo `date`": all done/submitted." >> $scriptlog 2>&1 63 echo "" >> $scriptlog 2>&1 63 64
Note:
See TracChangeset
for help on using the changeset viewer.