Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:30

0001 #!/bin/sh
0002 trap -p "echo got a signal" SIGABRT SIGBUS SIGILL SIGINT SIGKILL SIGQUIT SIGSEGV SIGSTOP 
0003 echo preparing environment
0004 WORKDIR=`pwd`
0005 cd $5
0006 eval `scramv1 runtime -sh`
0007 cd $WORKDIR
0008 export SCRATCH=`pwd`
0009 cp $5/OfflineDbClient.template OfflineClientScan.cfg
0010 ex OfflineClientScan.cfg +":%s/RUNNUMBER/$1" +wq
0011 ex OfflineClientScan.cfg +":%s/PARTITION/$2" +wq
0012 echo checking out data
0013 for i in `nsls /castor/cern.ch/user/d/delaer/CMStracker/${1} | grep ISHA${3}_VFS${4}`; { rfcp /castor/cern.ch/user/d/delaer/CMStracker/${1}/$i .; }
0014 echo running in $SCRATCH
0015 cmsRun OfflineClientScan.cfg || echo 
0016 echo saving client file as /castor/cern.ch/user/d/delaer/CMStracker/${1}/SiStripCommissioningClient_000${1}_ISHA${3}_VFS${4}.root
0017 rfcp SiStripCommissioningClient_000${1}.root /castor/cern.ch/user/d/delaer/CMStracker/${1}/SiStripCommissioningClient_000${1}_ISHA${3}_VFS${4}.root