Ignore:
Timestamp:
02/08/06 18:03:41 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets

    r7476 r7486  
    3333
    3434user=`whoami`
     35program=insertdatasets
    3536source /home/$user/Mars/datacenter/scripts/sourcefile
    3637
     
    4041
    4142datetime=`date +%F-%H-%M-%S`
     43lockfile=$lockpath/lock-insertdatasets.txt
    4244
    4345scriptlogpath=$logpath/run/insertdatasets/`date +%Y/%m`
     
    4850date >> $scriptlog 2>&1
    4951
    50 date > $lockpath/lock-insertdatasets.txt >> $scriptlog 2>&1
    51 checklock0=$?
    52 case $checklock0 in
    53     0)   echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;;
    54     1)   echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1
    55          echo "-> insertdatasets is running -> exit" >> $scriptlog 2>&1
    56          date  >> $scriptlog 2>&1
    57          exit;;
    58     *)   echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;;
    59 esac
     52# check if script is already running
     53checklock  >> $scriptlog 2>&1
    6054
    6155# get all datasetfiles
     
    112106done
    113107
    114 rm -v $lockpath/lock-insertdatasets.txt >> $scriptlog 2>&1
     108rm -v $lockfile >> $scriptlog 2>&1
    115109
    116110set +C
Note: See TracChangeset for help on using the changeset viewer.