Changeset 7944 for trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles
- Timestamp:
- 08/25/06 22:09:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/movingrawfiles
r7938 r7944 31 31 32 32 source `dirname $0`/sourcefile 33 printprocesslog "INFO starting $0" 34 program=movingrawfiles 33 35 34 36 set -C 37 umask 0002 35 38 36 program=movingrawfiles 37 38 lockfile=$lockpath/lock-$program.txt 39 40 scriptlogpath=$runlogpath/$program 41 makedir $scriptlogpath 42 scriptlog=$scriptlogpath/$program-$datetime.log 43 39 scriptlog=$runlogpath/$program-$datetime.log 44 40 date >> $scriptlog 2>&1 45 41 46 42 # check if script is already running 43 lockfile=$lockpath/lock-$program.txt 47 44 checklock >> $scriptlog 2>&1 48 49 50 umask 000251 45 52 46 # change permission for files … … 54 48 # output for chmod with -v or -c (only changes) 55 49 50 printprocesslog "INFO moving directories from fromlapalma to fromtape" 56 51 #find directories, which have to be copied 57 52 dirs=`ls /magic/datacenter/fromlapalma/RAWchk/*/*.finished | sed -e 's/RAWchk/RAW/g' | cut -d/ -f1-6` … … 74 69 fi 75 70 71 printprocesslog "INFO moving moving rawfiles to $datapath/rawfiles" 76 72 for rawfile in $rawfiles 77 73 do … … 87 83 rmdir -v /magic/datacenter/fromtape/rawdata/* >> $scriptlog 2>&1 88 84 85 printprocesslog "INFO launching filesondisk" 89 86 echo "launching filesondisk" >> $scriptlog 2>&1 90 87 $scriptspath/filesondisk&
Note:
See TracChangeset
for help on using the changeset viewer.