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