- Timestamp:
- 03/16/14 23:42:56 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Transfer/RsyncRawToISDC.sh
r17594 r17612 17 17 checklock 18 18 19 # stop transfer when less than 100 GB are left 20 function check_scratch() 21 { 22 diskusage2=( `df -P /scratch | grep scratch ` ) 23 # check if more than X GB are left on /scratch 24 if [ ${diskusage2[3]} -lt 100000 ] 25 then 26 printprocesslog "DISK less than 100 GB left on /scratch " 27 #echo "WARN less than 100 GB left on /scratch " 28 echo "WARN less than 100 GB left on /scratch " >> $logfile2 2>&1 29 finish 30 fi 31 } 32 33 check_scratch 34 19 35 # get todo list 20 36 gettodo … … 22 38 for (( s=0 ; s < $num ; s++ )) 23 39 do 40 check_scratch 24 41 night=${primaries[$s+$s]} 25 42 runid=${primaries[$s+$s+1]}
Note:
See TracChangeset
for help on using the changeset viewer.