Changeset 7486 for trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
- Timestamp:
- 02/08/06 18:03:41 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
r7482 r7486 52 52 53 53 todofile=$listpath/ToDo-$table-$column 54 lockfile=$lockpath/lock-getting-$program-list.txt 54 55 55 56 scriptlogpath=$logpath/run/$program/`date +%Y/%m` … … 66 67 echo " -> choose one file and start $program " >> $scriptlog 2>&1 67 68 else 68 date > $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&1 69 checklock0=$? 70 case $checklock0 in 71 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 72 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 73 echo "-> getting list for $program is running -> exit" >> $scriptlog 2>&1 74 date >> $scriptlog 2>&1 75 exit;; 76 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 77 esac 78 69 # check if getting of list is already running 70 checklock "getting list of" >> $scriptlog 2>&1 79 71 # get todo list 80 72 getdolist >> $scriptlog 2>&1 81 82 rm -v $lockpath/lock-getting-$program-list.txt >> $scriptlog 2>&1 73 rm -v $lockfile >> $scriptlog 2>&1 83 74 fi 84 75
Note:
See TracChangeset
for help on using the changeset viewer.