how to pass "echo t | " input to subprocess.check_output() method

Miki Tebeka miki.tebeka at gmail.com
Mon Nov 26 10:40:02 EST 2012


> But i dont know how to pass the "echo t | " in subprocess.check_output while calling a process.
You need to create two subprocess and connect the stdout of the first to the stdin of the 2'nd.

See http://pythonwise.blogspot.com/2008/08/pipe.html for a possible solution.



More information about the Python-list mailing list