Changeset 7944 for trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher
- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/scriptlauncher
r7936 r7944 18 18 # 19 19 # 20 # Author(s): Daniela Dorner 0 5/2005<mailto:dorner@astro.uni-wuerzburg.de>20 # Author(s): Daniela Dorner 08/2006 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 22 # Copyright: MAGIC Software Development, 2000-2006 … … 29 29 30 30 source `dirname $0`/sourcefile 31 printprocesslog "INFO starting $0 $@" 31 32 32 33 makedir $listpath 33 34 makedir $lockpath 34 35 35 sllogpath=$logpath/scriptlauncher/`date +%Y/%m` 36 makedir $sllogpath 37 errorlog=$sllogpath/error`date +%F`.log 38 scriptlog=$sllogpath/scriptlauncher`date +%F`.log 36 errorlog=$runlogpath/scriptlauncher-error`date +%F`.log 37 scriptlog=$runlogpath/scriptlauncher`date +%F`.log 39 38 40 39 echo `date`": starting $0 $@" >> $scriptlog 2>&1 … … 53 52 fi 54 53 echo " launching $i..." >> $scriptlog 2>&1 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 54 if ! 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 55 then 56 echo "condor is not working " >> $errorlog 2>&1 57 printprocesslog "ERROR submitting $i to condor failed" 58 fi 56 59 if ! echo $@ | grep "allatthesametime" >/dev/null 2>$errorlog 57 60 then … … 63 66 echo "" >> $scriptlog 2>&1 64 67 68 printprocesslog "INFO finished $0 $@" 69
Note:
See TracChangeset
for help on using the changeset viewer.