wrapper around subprocess to simplify te interface
Definition at line 5 of file pipe.py.
Referenced by addFilesWithFork(), spf::SherpackFetcher.CopyFile(), ExternalLHEProducer.executeScript(), edm::EventProcessor.forkProcess(), StormStorageMaker.getTURL(), StormLcgGtStorageMaker.getTURL(), TrackingRecHitProducer.produce(), and TrackingRecHitProducer.setupDetIdPipes().
6 def pipe(cmdline, input = None):
8 wrapper around subprocess to simplify te interface
10 args = _shlex.split(cmdline)
12 command = _subprocess.Popen(args, stdin = _subprocess.PIPE, stdout = _subprocess.PIPE, stderr =
None)
14 command = _subprocess.Popen(args, stdin =
None, stdout = _subprocess.PIPE, stderr =
None)
15 (out, err) = command.communicate(input)