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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message