Subject: Re: shell question...
To: Jukka Salmi <j+nbsd@2006.salmi.ch>
From: Charles Swiger <cswiger@mac.com>
List: netbsd-help
Date: 01/31/2006 12:13:36
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...
--
-Chuck