From owner-freebsd-hackers Tue Aug 28 16:30:27 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from owa-sj-1.digisle.com (owa-sj-1.digisle.com [167.216.153.124]) by hub.freebsd.org (Postfix) with ESMTP id 97ADF37B406; Tue, 28 Aug 2001 16:30:24 -0700 (PDT) (envelope-from myevmenk@digisle.net) Received: from VWALL-SJ-1.digisle.com ([167.216.153.118]) by owa-sj-1.digisle.com with Microsoft SMTPSVC(5.0.2195.2966); Fri, 24 Aug 2001 15:30:54 -0700 Received: from 206.220.227.145 by VWALL-SJ-1.digisle.com (InterScan E-Mail VirusWall NT); Fri, 24 Aug 2001 23:30:06 +0100 Message-ID: <3B86D55E.A9BB0815@digisle.net> Date: Fri, 24 Aug 2001 15:29:50 -0700 From: Maksim Yevmenkin Organization: Digital Island X-Mailer: Mozilla 4.72 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: chris@calldei.com Cc: Mike Barcroft , hackers@FreeBSD.ORG, Peter da Silva Subject: Re: Proposed Utility - detach(1) References: <20010824141955.B64018@coffee.q9media.com> <20010824171548.A60451@holly.calldei.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 24 Aug 2001 22:30:54.0555 (UTC) FILETIME=[6FF892B0:01C12CEC] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Chris Costello wrote: > > On Friday, August 24, 2001, Mike Barcroft wrote: > > I would appreciate comments on the usefulness of a utility which would > > allow one to detach a process from a TTY. I imagine the utility would > > be very small and just call daemon(3) and execlp(3). > > > > Would a utility like this be useful? Is this functionality already > > available in a system utility? > > All shells implement this: > > sh: > $ sleep 5 & > $ > [1] 61049 Exit 0 sleep 5 > > ksh: > $ sleep 5 & > [1] 61052 > $ > [1] + Done sleep 5& > > csh: > % sleep 5 & > [1] 61058 > % > [1] Done sleep 5 > > etc. > > Why does this need to be implemented in a separate executable? what you probably want to do is: % nohup sleep 5 & to make sure that proccess is still alive if you logout. thanks, max To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message