2 import subprocess
as _subprocess
5 def pipe(cmdline, input = None):
7 wrapper around subprocess to simplify te interface 9 args = _shlex.split(cmdline)
11 command = _subprocess.Popen(args, stdin = _subprocess.PIPE, stdout = _subprocess.PIPE, stderr =
None)
13 command = _subprocess.Popen(args, stdin =
None, stdout = _subprocess.PIPE, stderr =
None)
14 (out, err) = command.communicate(input)
def pipe(cmdline, input=None)