- Timestamp:
- 07/30/05 01:15:40 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/checkfilesforsequenceavail
r7232 r7233 41 41 42 42 scriptlogpath=$logpath/run/checkfilesavail/`date +%Y/%m/%d` 43 if [ ! -d $scriptlogpath ] 44 then 45 mkdir -pv $scriptlogpath 46 if [ ! -d $scriptlogpath ] 47 then 48 echo "could not make scriptlogpath "$scriptlogpath 49 exit 50 fi 51 fi 43 makedir $scriptlogpath 52 44 53 45 scriptlog=$scriptlogpath/checkfilesforsequenceavail-$datetime.log … … 55 47 date >> $scriptlog 2>&1 56 48 57 if [ ! -d $getstatuslogpath ] 58 then 59 mkdir -pv $getstatuslogpath >> $scriptlog 2>&1 60 if [ ! -d $getstatuslogpath ] 61 then 62 echo "could not make getstatuslogpath "$getstatuslogpath >> $scriptlog 2>&1 63 exit 64 fi 65 fi 49 makedir $getstatuslogpath >> $scriptlog 2>&1 66 50 67 51 cd $mars … … 100 84 outpath=$logpath/checkfileavail/$no 101 85 echo "outpath: "$outpath >> $scriptlog 2>&1 102 if [ ! -d $outpath ] 103 then 104 mkdir -pv $outpath >> $scriptlog 2>&1 105 if [ ! -d $outpath ] 106 then 107 echo "could not make outpath $outpath -> continue " >> $scriptlog 2>&1 108 continue 109 fi 110 fi 86 makedir $outpath >> $scriptlog 2>&1 87 111 88 check1=`root -q -b $macrospath/checkfileavail.C+\(\""$sequence\""\) | tee $outpath/checkfileavail-$sequence.log | grep int | sed -e 's/(int)//'` 112 89 … … 114 91 1) echo "check1=$check1 -> everthing ok -> setting status..." >> $scriptlog 2>&1 115 92 setstatuslogpath=$logpath/setstatus/checkfileavail/$no 116 if [ ! -d $setstatuslogpath ] 117 then 118 mkdir -pv $setstatuslogpath >> $scriptlog 2>&1 119 if [ ! -d $setstatuslogpath ] 120 then 121 echo "could not make setstatuslogpath "$setstatuslogpath >> $scriptlog 2>&1 122 continue 123 fi 124 fi 93 makedir $setstatuslogpath >> $scriptlog 2>&1 94 125 95 check2=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"Now()\""\) | tee $setstatuslogpath/setstatus-checkfileavail-$sequence.log | grep int | sed -e 's/(int)//'` 126 96 case $check2 in
Note:
See TracChangeset
for help on using the changeset viewer.