Changeset 7486 for trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets
- Timestamp:
- 02/08/06 18:03:41 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/insertdatasets
r7476 r7486 33 33 34 34 user=`whoami` 35 program=insertdatasets 35 36 source /home/$user/Mars/datacenter/scripts/sourcefile 36 37 … … 40 41 41 42 datetime=`date +%F-%H-%M-%S` 43 lockfile=$lockpath/lock-insertdatasets.txt 42 44 43 45 scriptlogpath=$logpath/run/insertdatasets/`date +%Y/%m` … … 48 50 date >> $scriptlog 2>&1 49 51 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 53 checklock >> $scriptlog 2>&1 60 54 61 55 # get all datasetfiles … … 112 106 done 113 107 114 rm -v $lock path/lock-insertdatasets.txt>> $scriptlog 2>&1108 rm -v $lockfile >> $scriptlog 2>&1 115 109 116 110 set +C
Note:
See TracChangeset
for help on using the changeset viewer.