Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: nohup dies
- X-seq: zsh-users 11910
- From: Matthew Wozniski <godlygeek@xxxxxxxxx>
- To: vim.unix@xxxxxxxxx
- Subject: Re: nohup dies
- Date: Mon, 1 Oct 2007 03:56:10 -0400
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=voQyZsVwx4PqcXY1RN0IYxE+GiqRvDqqIf0vu7onx+M=; b=m2PNA79aYuAsf0X2dLE1ov7G+vTRvWZjFoJfy1s6839dgtCgMCFqEV1L1WLfbR2kGFwdCCuGiLscYbEpLsEz0301UEcFKF90faael7ANsI5CdrAvH5kuKzD79EesaTS++tnVUIJP3DTR3YJJVHvI//AEzxb1RnC4UHelfjyQ2Ak=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=Lby3siUdAaliceEGaPRb1KBqSF1yhKdtJ0v4yUELHpoWQu4aytklHG9MVoDDQoFVu2bnMS3rnZojCnr65JUSFosfLBad/ALKCR5qjZ5daeKK690rqp5EuGiddbXKhXphEIBBq9nTEdjWRYucsb8atLOfUujb2u16hd2bvgX2zns=
- In-reply-to: <30c383e70710010029h143cd1f7obb1218c17e000587@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <vim.unix@xxxxxxxxxxxxxx> <30c383e70709301256m570d4cd7v4ce180db1d83cc67@xxxxxxxxxxxxxx> <200709302207.l8UM7FBc005205@xxxxxxxxxxxxxxxxxxx> <30c383e70709302316m6e93584ckcffdb3fd70b50b79@xxxxxxxxxxxxxx> <30c383e70710010029h143cd1f7obb1218c17e000587@xxxxxxxxxxxxxx>
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