From martine@cs.washington.edu Wed Jun 12 15:52:25 2002 Received: from mailscan2.cac.washington.edu (mailscan2.cac.washington.edu [140.142.33.16]) by lists.u.washington.edu (8.12.1+UW01.12/8.12.1+UW02.01) with SMTP id g5CMqNw3065966 for ; Wed, 12 Jun 2002 15:52:23 -0700 Received: FROM mxu2.u.washington.edu BY mailscan2.cac.washington.edu ; Wed Jun 12 15:52:23 2002 -0700 Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mxu2.u.washington.edu (8.12.1+UW01.12/8.12.1+UW02.01) with ESMTP id g5CMqNhS023956 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 12 Jun 2002 15:52:23 -0700 Received: from mailscan-out1.cac.washington.edu (mailscan-out1.cac.washington.edu [140.142.32.17]) by mxout2.cac.washington.edu (8.12.1+UW01.12/8.12.1+UW02.01) with SMTP id g5CMqMJ4032095 for ; Wed, 12 Jun 2002 15:52:22 -0700 Received: FROM mailhost1.u.washington.edu BY mailscan-out1.cac.washington.edu ; Wed Jun 12 15:51:54 2002 -0700 Received: from trout.darktech.org (S8-46-18.student.washington.edu [128.208.46.18]) by mailhost1.u.washington.edu (8.12.1+UW01.12/8.12.1+UW02.01) with ESMTP id g5CMprs7004451 for ; Wed, 12 Jun 2002 15:51:53 -0700 Received: from martine by trout.darktech.org with local (Exim 3.35 #1 (Debian)) id 17IGy1-0000Td-00 for ; Wed, 12 Jun 2002 15:51:53 -0700 Date: Wed, 12 Jun 2002 15:51:53 -0700 To: linux@u.washington.edu Subject: Re: continuing a process Message-ID: <20020612225153.GA1786@trout.darktech.org> References: <20020612201630.6BEF240B7@brogar.bmsc.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020612201630.6BEF240B7@brogar.bmsc.washington.edu> From: Evan Martin On Wed, Jun 12, 2002 at 01:16:29PM -0700, Ethan Merritt wrote: > On Wednesday 12 June 2002 11:42, 'Huge Nerd' Doug McLean wrote: > > > > I have a quick question. I have user who wants to run a program even > > when she is not logged in. We tried the nohup command to no avail. > > CAn you folks suggest another way to keep the program running? > > If your shell is [t]csh then nohup should be sufficient (and in fact is > probably the default). In bash, using the "disown" command should be sufficient. > In bash it's more complicated. Here is the relevant section of 'man bash': > [snip] > > Ugh. Messy. Yet one more reason not to use bash. > (Says this long-time tcsh user). Eeeew. ;) But because y'all didn't ask for my opinion, here's the zsh way. In your ~/.zshrc, add two options: setopt nocheckjobs setopt nohup The first means "don't check if I have backgrounded jobs when exiting" (normally, it'll say "you have backgrounded stuff" once before you exit). The second means "don't HUP anything when I exit". -- Evan Martin martine@cs.washington.edu http://neugierig.org .