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