os.popen2

Venkatesh Prasad Ranganath rvprasad at cis.ksu.edu
Mon Feb 5 15:15:05 EST 2001


Hi,

The following code stalls

import os
i = os.popen2("/bin/bash")
i[0].write("ls -lR")
i[1].read()
-----------stalls here

Am I missing something the way it should behave or isn't it possible to execute
a process using popenX, keep it alive and interact with it?

waiting for reply,

-- 
Venkatesh Prasad Ranganath



More information about the Python-list mailing list