Re: broken nohup?

From: Matthew Miller (mattdm_at_mattdm.org)
Date: 10/21/04

  • Next message: Carroll Grigsby: "Re: A welcoming email"
    Date: Wed, 20 Oct 2004 20:40:30 -0400
    To: fedora-list@redhat.com
    
    

    On Wed, Oct 20, 2004 at 07:39:47PM -0400, Sam Steingold wrote:
    > nohup does not let me log out:
    > $ ssh my-host
    > my-host:bash$ nohup foo &
    > my-host:bash$ exit
    > <hangs here, ssh never terminates>.
    > I have to kill the ssh process externally.

    This is a long-standing problem with OpenSSH. In fact, it's even earned a
    FAQ on their web site. See <http://www.openssh.com/faq.html#3.10>. Not that
    there's a solution there -- to my knowledge, there just isn't one. (Well,
    there's a few suggested patches, but they haven't undergone review.)

    It's worth noting -- and knowing this makes their faq response make sense --
    that bash, by default, *doesn't* send a HUP on exit. This means two things
    for you: first, there's really no need to use the nohup command, and second,
    the "workaround" they present is no workaround at all. The real workaround
    is the one you've been using -- kill the ssh process externally.

    Sorry this isn't really a helpful answer. But at least you'll know you're
    not alone.

    -- 
    Matthew Miller           mattdm@mattdm.org        <http://www.mattdm.org/>
    Boston University Linux      ------>                <http://linux.bu.edu/>
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Carroll Grigsby: "Re: A welcoming email"

    Relevant Pages

    • bg a foreground process, pipe output?
      ... Occasionally I find that a program I'm running is spitting too much ... but I don't want to kill it. ... using tcsh. ... Is there a way to switch to nohup once the process is running? ...
      (comp.os.linux.misc)
    • Re: bg a foreground process, pipe output?
      ... Occasionally I find that a program I'm running is spitting too much output ... but I don't want to kill it. ... tcsh. ... Is there a way to switch to nohup once the process is running? ...
      (comp.os.linux.misc)
    • Re: Memory overcommit
      ... OOM Killer itself is also a workaround, ... "No kill" is the best thing but we know there are tend to be memory-leaker on bad ... I wonder recent memory consumption speed can be an another key value. ... You can easily protect X with OOM_DISABLE, ...
      (Linux-Kernel)
    • Re: Unity hiding open LibreOffice files
      ... But a quick workaround for now could be to kill all LibreOffice processes ... before opening a new document. ... That is not a workaround as there are other important files open. ...
      (Ubuntu)
    • Re: How can I make a program keep running even after I logout?
      ... You can also use nohup ... But screen is an excellent choice also but might be over kill ... Mat Kovach ... To unsubscribe, ...
      (freebsd-questions)