python on windos os.popen and standart in and out

nneo hahaha at
Mon Jul 28 11:22:09 CEST 2003

On Sun, 27 Jul 2003 23:54:18 +0200, Jörg Maier wrote:

>  when giving 'w' as second parameter, i just can write,
> but not read. ssh is installed by cygwin. i dont want to use ssh-keys,
> because user shold be able to use the program on different machines
> without much key-copying.

Instead of os.popen try os.popen2 which gives
back 2 pipes , one to read and onother to write to you application .

p1 , p2 = os.popen2("foo")

More information about the Python-list mailing list