469,903 Members | 1,499 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

problems with popen (linux7.3 python2.2.2)

When I use:
os.popen('ssh -l root@something tomcat4 stop')
I find the command always hangs. The 'something' host contains the correct
key in the authorized_hosts file and works ok on the command prompt. I've
tried os.system() but this also hangs. I notice that the 'tomcat4 stop' is
being executed but when I do a 'ps -ef' I notice the popen process is still
alive. I've also noticed this command sometimes works (ie it doesnt hang)
but I've no idea why. Has anyone experienced similar problems with this? Or
does anyone have any alternative suggestions? I'm really at my wits end with
this one!
thanks alot,
Jul 18 '05 #1
0 1000

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Alex Lapp | last post: by
2 posts views Thread by christiancoder | last post: by
7 posts views Thread by Jacek Popławski | last post: by
reply views Thread by Richard Taylor | last post: by
8 posts views Thread by Jeff Poole | last post: by
1 post views Thread by jmalone | last post: by
3 posts views Thread by Jesse | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.