problems with popen (linux7.3 python2.2.2)

Discussion in 'Python' started by Byrom, R (Rob), Nov 26, 2003.

  1. hi,
    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,
    Rob
    Byrom, R (Rob), Nov 26, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Xavier
    Replies:
    0
    Views:
    407
    Xavier
    Aug 6, 2003
  2. Skip Montanaro
    Replies:
    1
    Views:
    421
    Thomas Heller
    Aug 7, 2003
  3. snacktime
    Replies:
    13
    Views:
    555
    Dan Sommers
    Feb 22, 2005
  4. Uwe Mayer

    changing from python2.3 to python2.4

    Uwe Mayer, Apr 8, 2005, in forum: Python
    Replies:
    1
    Views:
    294
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Apr 9, 2005
  5. Ksenia Marasanova
    Replies:
    2
    Views:
    347
    Mike Meyer
    Nov 17, 2005
Loading...

Share This Page