python on windos os.popen and standart in and out

Jörg Maier joerg.maier at rz.uni-mannheim.de
Tue Jul 29 01:50:32 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

thanks, 
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

bye joerg

nneo wrote:

> 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")

- -- 
Hi
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)

iD8DBQE/JbbNTYj8eXbs1acRArKcAKCeb5qP4Psd8VFA+KlZh1FVAweLOgCgyYiZ
7M1g4m+q5J8cWOXF8PVxHHs=
=z7vi
-----END PGP SIGNATURE-----




More information about the Python-list mailing list