python on windos os.popen and standart in and out
joerg.maier at rz.uni-mannheim.de
Tue Jul 29 01:50:32 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
i am so stupid, thats the right stuff, just read the moules documentation
and there was something like
<from the popen2 module; these are only available on Unix.>
But down there they say
<Availability: Unix, Windows.>
thats what i need now
> 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")
I am a signature virus.
Please copy me to your .signature file to help me spread.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the Python-list