python on windos os.popen and standart in and out

Jörg Maier joerg.maier at rz.uni-mannheim.de
Sun Jul 27 23:54:18 CEST 2003


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

Hy,
i want remote ls via shh from a windows machine. after starting the command
via
# stdoutssh = os.popen('/path/to/ssh.exe user at host ls -al ~' -+' 2>&1', 'r')
i have the possibility to watch the standart output in the pipe, but i cant
give the password. 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.

thank you for every advice.
regards,
joerg
- -- 
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/JEoOTYj8eXbs1acRAt6VAJ9YIDo6Busujj3TAun34t7kXG0VaQCfa4Bv
/I9/X+GUl3QjNw+xN2vOigY=
=qE1P
-----END PGP SIGNATURE-----




More information about the Python-list mailing list