n 11/10/2010 02:46 PM, Cameron Simpson wrote:
On 10Nov2010 14:28, Robert Moskowitzrgm@htt-consult.com wrote: | In the past I have always gotten on the terminal of a server and | executed a script that did a bunch of wgets to get the CD isos for a | release. | | Well I want to grab the FC14 isos, and I am not home for a few days. I | can't do it in a SSH session to a server at home as I will drop my | session before all the images are downloaded. [...] | Or is there a better tool? For example if I run the script with an& | after it, then drop my connection will the script keep running?
Screen!
See "man screen".
# man screen No manual entry for screen.
What do I have to install????
It lets you start a shell session (optionally with a distinctive session name) and detach from it. You can reconnect at any time.
I routinely do this for downloads, OS updates, long running hand-started daemons, etc.
In fact, I do it enough to use a wrapper script "scr":
http://www.cskk.ezoshosting.com/cs/css/bin/scr
which makes naming and use by name very easy:
scr FOO
makes new session named FOO. A plain:
scr
lists the sessions (like "screen -ls", but sorted and more readable).
BTW, you should also look at the "at" command for once off jobs.
But screen is more likely what you will find useful.
Cheers,