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