problems with popen (linux7.3 python2.2.2)

Byrom, R (Rob) R.Byrom at rl.ac.uk
Wed Nov 26 11:34:51 EST 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 fibrespeed.net]
Sent: Wednesday, November 26, 2003 3:50 PM
To: python-list at python.org
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.
http://www.fibrespeed.net/~mbabcock



-- 
http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list