54 def runO2O( cmsswdir, releasepath, release, arch, jobfilename, logfilename, *p ):
56 if path.exists(
'%s.db' %fileNameForDropBox ):
57 print "Removing files with name %s" %fileNameForDropBox
58 remove(
'%s.db' %fileNameForDropBox )
59 if path.exists(
'%s.txt' %fileNameForDropBox ):
60 remove(
'%s.txt' %fileNameForDropBox )
61 command =
'export SCRAM_ARCH=%s;' %arch
62 command +=
'CMSSWDIR=%s;' %cmsswdir
63 command +=
'source ${CMSSWDIR}/cmsset_default.sh;'
64 command +=
'cd %s/%s/src;' %(releasepath,release)
65 command +=
'eval `scramv1 runtime -sh`;'
68 command +=
'cmsRun %s ' %jobfilename
69 command +=
' '.
join(p)
71 pipe = subprocess.Popen( command, shell=
True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT )
72 stdout_val = pipe.communicate()[0]