CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
sysUtil Namespace Reference

Functions

def processRunning
 
def runCmmd
 

Variables

tuple pid = runCmmd('cat -; echo ";to stderr" 1>&2',shell=True)
 

Function Documentation

def sysUtil.processRunning (   processid)
check if a process is still running

Definition at line 14 of file sysUtil.py.

14 
15 def processRunning(processid):
16  """
17  check if a process is still running
18  """
19  return os.path.exists(os.path.join('/proc',str(processid)))
def processRunning
Definition: sysUtil.py:14
def sysUtil.runCmmd (   cmmdline,
  shell = False 
)
runsubprocess return processid

Definition at line 5 of file sysUtil.py.

5 
6 def runCmmd(cmmdline,shell=False):
7  """runsubprocess return processid
8  """
9  args=[]
10  proc=Popen(cmmdline,shell=shell,stdout=PIPE,stdin=PIPE,stderr=STDOUT)
11  stdout_value,stderr_value=proc.communicate()
12  print repr(stdout_value)
13  return proc.pid
def runCmmd
Definition: sysUtil.py:5

Variable Documentation

tuple sysUtil.pid = runCmmd('cat -; echo ";to stderr" 1>&2',shell=True)

Definition at line 22 of file sysUtil.py.

Referenced by TestPythiaDecays.analyze(), SiPixelErrorEstimation.analyze(), SiPixelTrackingRecHitsValid.analyze(), TauValidation.countParticles(), CalibrationScanTask.directory(), CalibrationTask.directory(), SiStripCommissioningSource.directory(), ChargeDividerFP420.divide(), ExternalLHEProducer.executeScript(), TriggerSummaryProducerAOD.fillFilterObjectMembers(), DQMFileSaver.fillJson(), FastTimerService.fillPathMap(), TriggerSummaryProducerAOD.fillTriggerObjectCollections(), PythiaFilterGammaJet.filter(), PythiaFilterGammaJetIsoPi0.filter(), PythiaFilterGammaJetWithBg.filter(), PythiaFilterGammaJetWithOutBg.filter(), PythiaFilterEMJetHeep.filter(), HighMultiplicityGenFilter.filter(), RemoteFile.get(), HLTDoubletDZ< T1, T2 >.getCollections(), jsoncollector::FastMonitor.getHostAndPID(), TrackClassifier.hadronFlavor(), HLTDoublet< T1, T2 >.hltFilter(), cond::persistency.import(), TauValidation.leadingPionP4(), edm::ModuleDescription.ModuleDescription(), PythiaDecays.particleDaughters(), VertexHistoryAnalyzer.particleString(), TrackHistoryAnalyzer.particleString(), FastTimerService.postEndJob(), FastTimerService.postEvent(), FastTimerService.postGlobalEndRun(), FastTimerService.postPathEvent(), FastTimerService.preEvent(), FastTimerService.preGlobalBeginRun(), FastTimerService.prePathEvent(), FastTimerService.preStreamBeginRun(), SiPixelDigitizerAlgorithm.primary_ionization(), HepMCFileReader.printEvent(), FastTimerService.processID(), L3MuonCandidateProducerFromMuons.produce(), L2MuonCandidateProducer.produce(), L3MuonCandidateProducer.produce(), MuonSimHitProducer.produce(), CSCCathodeLCTProcessor.ptnFinding(), PythiaDecays.PythiaDecays(), CaloMeanResponse.readResponse(), CalorimetryManager.reconstruct(), CalorimetryManager.reconstructHCAL(), run_script(), edm::Provenance.setProductID(), TauValidation.spinEffectsZH(), TestPythiaDecays.TestPythiaDecays(), ValidHitPairFilter.update(), HcalTB06Analysis.update(), HcalTB04Analysis.update(), edm::service::CondorStatusService.updateChirp(), VertexHistoryAnalyzer.vertexString(), TrackHistoryAnalyzer.vertexString(), TauValidation.visibleTauEnergy(), and TestPythiaDecays.~TestPythiaDecays().