Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:23

0001 #!/bin/tcsh 
0002 
0003 
0004 set odir = $1
0005 set iter = $2
0006 echo $odir
0007 set name = `basename $odir`
0008 set jobs = `ls -d $odir/job*/ | wc -l`
0009 
0010 
0011      UP: 
0012         @ alldone1 = 0
0013         set ii = $jobs
0014 
0015         while($ii)
0016         if(`ls -q $odir/job$ii/ |  grep DONE1` != "DONE1" ) then 
0017          if(`stat -c %s $odir/job$ii/IOUserVariables.root` > 1000 || `stat -c %s $odir/job$ii/IOUserVariables.root` == 0 ) then
0018           sleep 5
0019           echo dentro primo if job$ii          
0020           if(`stat -c %s $odir/job$ii/IOUserVariables.root` > 5000) then
0021           @ alldone1 = $alldone1 + 1
0022           touch $odir/job$ii/DONE1
0023           echo dentro secondo if job$ii          
0024           else
0025           echo 1 > $odir/job$ii/DONE 
0026           rm -f $odir/job$ii/IOUserVariables.root
0027           bkill -J $name/align$iter\[$ii\]  
0028                          
0029           echo kill the job $name/align$iter\[$ii\]    
0030          
0031           endif
0032          endif
0033         else
0034         echo dentro primo else job$ii          
0035          @ alldone1 = $alldone1 + 1  
0036        
0037         endif
0038        
0039         @ ii--    
0040         end
0041        
0042      if($alldone1 != $jobs) then 
0043         sleep 10
0044         echo nuovo ciclo
0045         goto UP
0046      endif
0047 
0048         
0049            
0050 
0051 
0052