Changeset 15596
- Timestamp:
- 05/13/13 10:50:59 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/BackupRawToWue.sh
r13152 r15596 9 9 set -C 10 10 11 # checking that not more than $numrsyncwuelimit 12 # instances of the script are running 13 numrsyncwue=`lsof $0 | grep -o -c $0` 14 echo "-"$numrsyncwue"-" 15 if [ $numrsyncwue -gt $numrsyncwuelimit ] 16 then 17 echo "INFO already "$numrsyncwue" BackupRawToWue.sh running -> exit. " 18 finish 19 fi 20 11 21 logfile=$runlogpath"/RsyncRawToWue-"$datetime".log" 12 22 date >> $logfile 13 14 # check if script is already running15 lockfile=$lockpath/lock-$program.txt16 checklock17 23 18 24 # get todo list … … 27 33 28 34 setstatus "start" 35 if [ $numchanged -eq 0 ] 36 then 37 printprocesslog "INFO "$numchanged" rows were changed in DB => "$night"_"$runid" is already processed => continue." 38 continue 39 fi 29 40 30 41 rawdirisdc="/scratch/from_lapalma/raw"
Note:
See TracChangeset
for help on using the changeset viewer.