problems with popen (linux7.3 python2.2.2)

Byrom, R (Rob) R.Byrom at
Wed Nov 26 17:34:51 CET 2003

thanks! I'll give this a try. I did managed to avoid the 'hang' by putting
the python script in the foreground (previously I was running the script as
a back ground process). 

-----Original Message-----
From: Michael T. Babcock [mailto:mbabcock at]
Sent: Wednesday, November 26, 2003 3:50 PM
To: python-list at
Subject: Re: problems with popen (linux7.3 python2.2.2)

>When I use: 
>os.popen('ssh -l root at something tomcat4 stop') 
>I find the command always hangs.

Try adding a "-t" to your SSH command-line; it forces it to request a 
TTY instead of being silent.  SSH tries to do "the right thing" when not 
launched from a terminal prompt.

Michael T. Babcock
C.T.O., FibreSpeed Ltd.


More information about the Python-list mailing list