Changeset 7476 for trunk/MagicSoft/Mars/datacenter/scripts/copyscript
- Timestamp:
- 02/03/06 16:42:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/copyscript
r7460 r7476 67 67 char=28 68 68 datetime=`date +%F-%H-%M-%S` 69 lockfile=$lockpath/lock-copyscript.txt 69 70 70 71 scriptlogpath=$logpath/run/copyscript/`date +%Y/%m/%d` … … 76 77 77 78 # check if the script is already running 78 date > $lock path/lock-copyscript.txt>> $scriptlog 2>&179 date > $lockfile >> $scriptlog 2>&1 79 80 checklock0=$? 80 81 case $checklock0 in … … 95 96 then 96 97 echo "couldn't create checkfile -> exit script" >> $scriptlog 2>&1 97 rm -v $lock path/lock-copyscript.txt>> $scriptlog 2>&198 rm -v $lockfile >> $scriptlog 2>&1 98 99 date >> $scriptlog 2>&1 99 100 exit … … 113 114 then 114 115 echo "nothing to do -> exit" >> $scriptlog 2>&1 115 rm -v $lock path/lock-copyscript.txt>> $scriptlog 2>&1116 rm -v $lockfile >> $scriptlog 2>&1 116 117 date >> $scriptlog 2>&1 117 118 exit … … 292 293 293 294 294 rm -v $lock path/lock-copyscript.txt>> $scriptlog 2>&1295 rm -v $lockfile >> $scriptlog 2>&1 295 296 date >> $scriptlog 2>&1 296 297
Note:
See TracChangeset
for help on using the changeset viewer.