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 PartonShowerBsHepMCFilter.filter(), HighMultiplicityGenFilter.filter(), gen::BaseHadronizer.generateLHE(), RemoteFile.get(), dqm::DQMFileSaverOnline.makeSnapshot(), edm::ModuleDescription.ModuleDescription(), PythiaDecays.particleDaughters(), L3MuonCandidateProducerFromMuons.produce(), L2MuonCandidateProducer.produce(), ME0MuonConverter.produce(), PythiaDecays.PythiaDecays(), CaloMeanResponse.readResponse(), TrackInformation.setCastorHitPID(), and edm::Provenance.setProductID().