Subject: Re: shell question...
To: Charles Swiger <cswiger@mac.com>
From: rudolf <netbsd@eq.cz>
List: netbsd-help
Date: 01/31/2006 18:37:41
Charles Swiger wrote:
> On Jan 31, 2006, at 11:46 AM, Jukka Salmi wrote:
>
>>>> [1] Terminated sleep 30 >/dev/null 2>&1
>>>
>>>
>>> man nohup
>>
>>
>> Hmm, I don't think this helps...
>>
>> $ nohup sleep 30 >/dev/null 2>&1 &
>> [1] 17842
>> $ kill $! >/dev/null 2>&1
>> [1] + Terminated nohup sleep 30 > /dev/null 2>&1
>
>
> Follow the nohup by a "disown %1", which will remove the task from
> interacting with your shell. Of course, either your shell needs to
> support the disown functionality, or the task you run needs to have the
> capability. Otherwise consider:
>
> /usr/sbin/daemon echo "yeah" 2>&1 > /dev/null
>
> You could also hunt down DJB's daemontools, which have similar
> intentions...
>
Hi,
I'm just curious how it's possible that you have the /usr/sbin/daemon on
your NetBSD. I can't find it on NetBSD 2.0.2, 2.1, 3.0 and current but
yes, there is one on the FreeBSD 5.4 here ... :)
Regards,
r.