Go to the documentation of this file.00001
00002 import os,string,sys,commands,time
00003
00004
00005 MODFILE="reco_skim_cfg_mod.py"
00006
00007
00008 PREFIX="SkimSM"
00009
00010
00011 NUMEVENTS="-1"
00012
00013 while True:
00014 DATE=str(int(time.time()))
00015 print "Suffix:"+DATE
00016 FILENAME=PREFIX+"_"+DATE+"_cfg.py"
00017 FILELOG=PREFIX+"_"+DATE+".log"
00018 COMMAND="sed 's/SUFFIX/"+DATE+"/;s/NUMEVENTS/"+NUMEVENTS+"/' "+MODFILE+" > "+FILENAME
00019 os.system(COMMAND)
00020 print "Created: "+FILENAME+" . Running cmsRun now and logging in "+FILELOG
00021 os.system("cmsRun "+FILENAME+" 2>&1 | tee "+FILELOG+" | grep --line-buffered -e \"Begin processing\" -e \"BeamSplash\"")