Changeset 7486 for trunk/MagicSoft/Mars/datacenter/scripts/copyscript
- Timestamp:
- 02/08/06 18:03:41 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/copyscript
r7476 r7486 58 58 59 59 user=`whoami` 60 program=copyscript 60 61 source /home/$user/Mars/datacenter/scripts/sourcefile 61 62 … … 77 78 78 79 # check if the script is already running 79 date > $lockfile >> $scriptlog 2>&1 80 checklock0=$? 81 case $checklock0 in 82 0) echo "checklock0=$checklock0 -> continue " >> $scriptlog 2>&1;; 83 1) echo "checklock0=$checklock0 -> file exists " >> $scriptlog 2>&1 84 echo "-> copyscript is running -> exit" >> $scriptlog 2>&1 85 date >> $scriptlog 2>&1 86 exit;; 87 *) echo "checklock0=$checklock0 -> something went completely wrong" >> $scriptlog 2>&1;; 88 esac 80 checklock >> $scriptlog 2>&1 89 81 90 82 cd $transdir
Note:
See TracChangeset
for help on using the changeset viewer.