CMS 3D CMS Logo

Functions
pipe Namespace Reference

Functions

def pipe (cmdline, input=None)
 

Function Documentation

◆ pipe()

def pipe.pipe (   cmdline,
  input = None 
)
wrapper around subprocess to simplify te interface

Definition at line 5 of file pipe.py.

Referenced by addFilesWithFork(), l1ct::tdr_regionizer::Pipes< T >.entry(), ExternalLHEProducer.executeScript(), l1ct::tdr_regionizer::Pipes< T >.popEntry(), TrackingRecHitProducer.setupDetIdPipes(), and edm::shared_memory::WorkerMonitorThread.startThread().

5 def pipe(cmdline, input = None):
6  """
7  wrapper around subprocess to simplify te interface
8  """
9  args = _shlex.split(cmdline)
10  if input is not None:
11  command = _subprocess.Popen(args, stdin = _subprocess.PIPE, stdout = _subprocess.PIPE, stderr = None)
12  else:
13  command = _subprocess.Popen(args, stdin = None, stdout = _subprocess.PIPE, stderr = None)
14  (out, err) = command.communicate(input)
15  return out
16 
def pipe(cmdline, input=None)
Definition: pipe.py:5