Changeset 7486 for trunk/MagicSoft/Mars/datacenter/scripts/mcsequences
- Timestamp:
- 02/08/06 18:03:41 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/mcsequences
r7460 r7486 35 35 36 36 user=`whoami` 37 program=mcsequences 37 38 source /home/$user/Mars/datacenter/scripts/sourcefile 38 39 39 40 set -C 40 41 41 scriptlogpath=$logpath/run/ mcsequences/`date +%Y/%m/%d`42 scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d` 42 43 makedir $scriptlogpath 43 scriptlog=$scriptlogpath/ mcsequences`date +%F`.log44 scriptlog=$scriptlogpath/$program`date +%F`.log 44 45 45 46 date >> $scriptlog 2>&1 46 47 47 48 # check if script is already running 48 lockfile=$lockpath/lock-mcsequences.txt 49 date > $lockfile >> $scriptlog 2>&1 50 checklock0=$? 51 case $checklock0 in 52 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 53 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 54 echo "-> linkmc is running -> exit" >> $scriptlog 2>&1 55 date >> $scriptlog 2>&1 56 exit;; 57 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 58 esac 49 lockfile=$lockpath/lock-$program.txt 50 checklock >> $scriptlog 2>&1 59 51 60 52
Note:
See TracChangeset
for help on using the changeset viewer.