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

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Dec 15 10:51:56 PST 2004


On 2004-12-15 13:33, Rae Kim <z49x2vmq at gmail.com> wrote:
> I connect to my computer from school computer.
> I want to cvsup or/and portupgrade and logout but the program keep running?

Put it in the background.  Optionally, you may wish to redirect its
output to a file and use tail -f on that file to see how things are
progressing:

	bash-2.05b$ ( cvsup -g -L 2 -h cvsup.example.net > logfile 2>&1 ) &
	bash-2.05b$ disown %1
	bash-2.05b$ exit

The example shown above works for GNU bash, hence the prompt.  Other
shells have ways of doing the same thing too.

- Giorgos



More information about the freebsd-questions mailing list