Changeset 7233 for trunk/MagicSoft/Mars/datacenter/scripts/copyscript
- Timestamp:
- 07/30/05 01:15:40 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/copyscript
r7213 r7233 70 70 71 71 scriptlogpath=$logpath/run/copyscript/`date +%Y/%m/%d` 72 if [ ! -d $scriptlogpath ] 73 then 74 mkdir -pv $scriptlogpath 75 if [ ! -d $scriptlogpath ] 76 then 77 echo "could not make scriptlogpath "$scriptlogpath 78 exit 79 fi 80 fi 72 makedir $scriptlogpath 81 73 82 74 scriptlog=$scriptlogpath/copyscript-$datetime.log … … 149 141 copylogpath=$logpath/copyscript/$date2 150 142 echo "copylogpath: "$copylogpath >> $scriptlog 2>&1 151 if [ ! -d $copylogpath ] 152 then 153 mkdir -pv $copylogpath >> $scriptlog 2>&1 154 if [ ! -d $copylogpath ] 155 then 156 echo "could not make copylogpath $copylogpath -> continue " >> $scriptlog 2>&1 157 continue 158 fi 159 fi 143 makedir $copylogpath >> $scriptlog 2>&1 160 144 161 145 #loop over all files in the directories for this date … … 172 156 echo "file (new path): "$newfile >> $scriptlog 2>&1 173 157 newpath=`dirname $newfile` 174 # echo "new path: "$newpath175 158 #make sure, that the needed directories are available 176 if [ ! -d $newpath ] 177 then 178 mkdir -pv $newpath >> $scriptlog 2>&1 179 if [ ! -d $newpath ] 180 then 181 echo "could not make path $newpath" >> $scriptlog 2>&1 182 continue 183 fi 184 fi 159 makedir $newpath >> $scriptlog 2>&1 185 160 186 161 #run macros if the file is a *.rbk or a *.run file to
Note:
See TracChangeset
for help on using the changeset viewer.