- Timestamp:
- 02/03/06 16:49:10 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/makecallistolinks
r7476 r7477 34 34 35 35 user=`whoami` 36 program=makecallistolinks 36 37 source /home/$user/Mars/datacenter/scripts/sourcefile 37 38 … … 41 42 callistorcnew=callisto_Dec04Jan05.rc 42 43 43 scriptlogpath=$logpath/run/ makecallistolinks/`date +%Y/%m/%d`44 scriptlogpath=$logpath/run/$program/`date +%Y/%m/%d` 44 45 makedir $scriptlogpath 45 scriptlog=$scriptlogpath/ makingcallistolinks`date +%F`.log46 scriptlog=$scriptlogpath/$program`date +%F`.log 46 47 47 48 date >> $scriptlog 2>&1 48 49 49 50 # check if script is already running 50 lockfile=$lockpath/lock- making-callisto-links.txt51 lockfile=$lockpath/lock-$program.txt 51 52 date > $lockfile >> $scriptlog 2>&1 52 53 checklock0=$? … … 54 55 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 55 56 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 56 echo "-> makecallistolinksis running -> exit" >> $scriptlog 2>&157 echo "-> $program is running -> exit" >> $scriptlog 2>&1 57 58 date >> $scriptlog 2>&1 58 59 exit;;
Note:
See TracChangeset
for help on using the changeset viewer.