Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Mar 2004 13:24:34 +1200
From:      Richard Stevenson <richard@endace.com>
To:        Robert Storey <y2kbug@ms25.hinet.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: log off with process running
Message-ID:  <Pine.LNX.4.58.0403261323250.17048@zhba.rg.raqnpr.pbz>
In-Reply-To: <20040326092248.4845573e.y2kbug@ms25.hinet.net>
References:  <20040326092248.4845573e.y2kbug@ms25.hinet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

On Fri, 26 Mar 2004, Robert Storey wrote:

> Suppose I'm at home with a dial-up connection to the Internet. At the school
> where I work we have a server running FreeBSD with a full-time connection (T1
> line). So from home, I log onto the school's server with ssh, and start a
> process that will run for a long time, maybe something like this:
>
>   wget ftp://ftp.freebsd.org/pub/bigfile.iso
>
> OK, that download might run for hours. I don't want to stay connected for hours,
> I want to log off and hang up the modem. The question is, how to do so? With the
> above process running, I can't even get back to the command line to type "exit"
> (and wouldn't typing "exit" kill any process I'm running?). Ditto if I hit
> ctrl-c. I suppose I could just hang up the modem, but that's not elegant.
>
> So what is the elegant solution?

Try this:

at now
at> wget ftp://ftp.freebsd.org/pub/bigfile.iso
^D

It'll start running in the background straight away, and mail you any
output.

Cheers

Richard


-- 
Richard Stevenson

Violence is the last resort of the incompetent.
The competent, of course, make it their *first* resort.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.58.0403261323250.17048>