Bugs item #1101756, was opened at 2005-01-13 17:21
Message generated for change (Comment added) made by ph_e
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 [EMAIL PROTECTED] 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: Ph.E (ph_e)
Date: 2005-01-13 18: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
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to