popen2.popen3()

popen2.popen3(cmd, bufsize=-1, mode='t')[source]

Execute the shell command ‘cmd’ in a sub-process. On UNIX, ‘cmd’ may be a sequence, in which case arguments will be passed directly to the program without shell intervention (as with os.spawnv()). If ‘cmd’ is a string it will be passed to the shell (as with os.system()). If ‘bufsize’ is specified, it sets the buffer size for the I/O pipes. The file objects (child_stdout, child_stdin, child_stderr) are returned.