How can I make a program keep running even after I logout?
O. Hartmann
ohartman at uni-mainz.de
Wed Dec 15 11:03:07 PST 2004
Mat Kovach schrieb:
>On Wed, Dec 15, 2004 at 07:40:02PM +0100, Nico Meijer wrote:
>
>
>>Hi,
>>
>>
>>
>>>I want to cvsup or/and portupgrade and logout but the program keep
>>>running?
>>>
>>>
>>Try screen: /usr/ports/misc/screen
>>
>>To run it, simply type `screen`, do your work, type "Ctrl-A d" to detach
>>(you can go home now). Log in again, type `screen -r`. Be happy.
>>
>>
>
>You can also use nohup
>
>man 1 nohup
>
>But screen is an excellent choice also but might be over kill
>for this specific purpose.
>
>I use something like:
>
>$ nohup sudo cvsup -g -L 2 /etc/cvsupdate &
>appending output to /home/kovachme/nohup.out
>
>
>
Another way is using daemon(8) which seems in many cases much more
useful than nohup.
More information about the freebsd-questions
mailing list