How can I make a program keep running even after I logout?

Mat Kovach kovachme at pobox.com
Wed Dec 15 11:00:41 PST 2004


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

-- 
Mat Kovach
Cleveland, Ohio


More information about the freebsd-questions mailing list