Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2001 15:29:50 -0700
From:      Maksim Yevmenkin <myevmenk@digisle.net>
To:        chris@calldei.com
Cc:        Mike Barcroft <mike@FreeBSD.ORG>, hackers@FreeBSD.ORG, Peter da Silva <peter@baileynm.com>
Subject:   Re: Proposed Utility - detach(1)
Message-ID:  <3B86D55E.A9BB0815@digisle.net>
References:  <20010824141955.B64018@coffee.q9media.com> <20010824171548.A60451@holly.calldei.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B86D55E.A9BB0815>