Changeset 7479 for trunk/MagicSoft/Mars/datacenter/scripts
- Timestamp:
- 02/03/06 19:05:45 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles
r7460 r7479 44 44 # workaround for rawfiles with wrong timing 45 45 # newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles-wrong-timing/g' -e 's/_/\//1' -e 's/_/\//1'` 46 newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles/g' -e 's/_/\//1' -e 's/_/\//1'` 47 newdir=`dirname $newrawfile` 48 if [ ! -d $newdir ] 49 then 50 echo "make dir "$newdir 51 mkdir -p $newdir 52 fi 46 newrawfile=`echo $rawfile | sed -e 's/center\/fromtape\/rawdata/\/rawfiles/g' -e 's/_/\//1' -e 's/_/\//1'` 47 newdir=`dirname $newrawfile` 48 if [ ! -d $newdir ] 49 then 50 mkdir -pv $newdir 51 if [ ! -d $newdir ] 52 then 53 echo "could not make dir "$newdir 54 exit 55 fi 56 fi 53 57 54 mv -v $rawfile $newrawfile 58 if gzip -1c $rawfile > $newrawfile.gz 59 then 60 rm -v $newrawfile 61 rm -v $rawfile 62 fi 55 63 done 56 64 -
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r7477 r7479 50 50 51 51 52 function finish() 53 { 54 rm -v $todofile 55 rm -v $lockfile 56 date 57 exit 58 } 59 52 60 function makedir() 53 61 { … … 58 66 then 59 67 echo "could not make dir "$@ 60 exit68 finish 61 69 fi 62 70 fi 63 }64 65 function finish()66 {67 rm -v $todofile68 rm -v $lockfile69 date70 exit71 71 } 72 72
Note:
See TracChangeset
for help on using the changeset viewer.