[ python-Bugs-1101756 ] popen4/cygwin ssh hangs
SourceForge.net
noreply at sourceforge.net
Thu Jan 13 17:21:17 CET 2005
Bugs item #1101756, was opened at 2005-01-13 17:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1101756&group_id=5470
Category: Threads
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ph.E (ph_e)
Assigned to: Nobody/Anonymous (nobody)
Summary: popen4/cygwin ssh hangs
Initial Comment:
The following python code hangs on executing cmd2
(works with cmd1).
The commands works fine when executed on a shell.
I have the same problem with Python 2.3.4 and 2.4
(Windows).
I use the latest Cygwin binaries
import os
cmd1 = "bin\ssh"
cmd2 = "bin\ssh -i id_dsa admin at myserver.com uptime"
def docmd(cmd):
print "Doing %s ..." % cmd
(stdin, stdouterr) = os.popen4(cmd)
for line in stdouterr.readlines():
print line
stdin.close()
stdouterr.close()
print "Done."
if __name__ == '__main__':
docmd(cmd1)
docmd(cmd2)
Give me some advice for testing (popen, linux, ...).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1101756&group_id=5470
More information about the Python-bugs-list
mailing list