[ python-Bugs-1101756 ] popen4/cygwin ssh hangs
SourceForge.net
noreply at sourceforge.net
Fri Sep 30 07:36:33 CEST 2005
Bugs item #1101756, was opened at 2005-01-13 08:21
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1101756&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Threads
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ph.E (ph_e)
>Assigned to: Jason Tishler (jlt63)
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, ...).
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2005-09-29 22:36
Message:
Logged In: YES
user_id=33168
Jason?
----------------------------------------------------------------------
Comment By: Ph.E (ph_e)
Date: 2005-01-13 09:33
Message:
Logged In: YES
user_id=1196530
The same code in Linux Python 2.3.4 works fine.
----------------------------------------------------------------------
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