Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: nohup dies



On Mon, Oct 01, 2007 at 09:29:24AM +0200, Pau Amaro-Seoane wrote:
> tuffi3% set nohup
That line is your problem.  Options in zsh are set using 'setopt', not
'set'.  You were setting $argv to 'nohup', which wasn't what you
wanted to do.  So, the following should do exactly what you want:

tuffi3% setopt nohup
tuffi3% cat ./inicia| ~pau/executables/NB4_NoPN > diagnostic &
[1] 19492 19493
tuffi3%
tuffi3% exit
zsh: you have running jobs.
tuffi3% exit

As noted, you no longer need to use the nohup command at all if you
use 'setopt nohup'.  Also as pointed out, the nohup command works if
you tell it "don't send a hup signal to cat AND don't send a hup
signal to NB4_NoPN" by putting a call to nohup before each of them.
And, also as pointed out, the best way for you to do this would have
been:
tuffi3% nohup ~pau/executables/NB4_NoPN < inicial > diagnostic &

~Matt Wozniski



Messages sorted by: Reverse Date, Date, Thread, Author