in reply to Re: Slightly OT - automating nohup bg jobs...
in thread Slightly OT - automating nohup bg jobs...

Thanks for input. FYI, the output gets appended to the nohup.out file by default and is useful to tail when testing (at least on FreeBSD). I'm not an expert on this at all - just hacks I found that seem to be useful.

I really should learn bash in detail at some point...

cLive ;-)

  • Comment on Re:^2 Slightly OT - automating nohup bg jobs...

Replies are listed 'Best First'.
Re: Re:^2 Slightly OT - automating nohup bg jobs...
by bluto (Curate) on Jan 23, 2004 at 16:19 UTC
    I'm not sure that nohup is sufficient though to completely close stdout and stderr. I think the shell you spawn on the remote machine is itself holding a copy of these open.

    FWIW, I use zsh for my main shell, but almost always write scripts that are sh/ksh compatible since these are installed on almost every unix-like machine (and much more consistent than using csh).

    bluto

        My solution looks suspiciosly similar to the ssh FAQ in your updated node, and my answers almost never look like FAQ answers. :-) Though I don't remember copying it from there, my memory isn't what it used to be...

        bluto