How to wget without leaving putty on

Status
Not open for further replies.

msk19994

Active Member
2,813
2011
567
25
Hey Guys
I wanted to ask u is there a way i can wget without leaving the putty on as i need to wget 80gbs folder to another server of mine and i have some connection problems in my home connection ie if putty closes the wget also gets closed i think so is there a way to auto wget without me being connected to the net ?
 
15 comments
run the command via GNU Screen. When your session drops just connect back and get back to the initial screen (y). There are a fair number of tutorials about using it.. Hope it helps.

Regards,
Gaurav

edit: woops soft2050 beat me xD
 
so its like after i install this when i wget if my connection stops then it will be disconnected with it but when i reconnect it will resume right ?
ok so is there any other way like i only connect once and then close it and then it automatically does the wget
 
Nope, screen is the other way round. It won't die once you close the connection off, so your file would still be downloading. The processes of the screen are active in the background.
 
oh cool so its what i want ie when suppose i come online it would be downloaded


(never mind it was already installed lets see if it works)
 
Use screen, then run your desired command(s), hit ctrl + a + d to detach the screen session.
When you want to reatach, do screen -ls, it'll show running screen sessions, then screen -R screenID (replace screenID by the output from screen -ls) and you're done.
 
Use screen, then run your desired command(s), hit ctrl + a + d to detach the screen session.
When you want to reatach, do screen -ls, it'll show running screen sessions, then screen -R screenID (replace screenID by the output from screen -ls) and you're done.

I think i messed it up how to get in the screen i tried but new screens keep opening i am confused

Code:
[root@ks3093727 ~]# screen -ls
There are screens on:
        7462.1  (Attached)
        20118.1 (Detached)
        6931.1  (Detached)
        20836.20385.7462.1      (Attached)
        20059.1 (Attached)
        19084.1 (Detached)
        20385.7462.1    (Attached)
7 Sockets in /var/run/screen/S-root.
 
To reatach a screen session, it needs to be detached first. Let's say you want to reatach 7462
First: screen -D 7462 ,this will detach it, then: screen -R 7462 to reatach it.
 
Status
Not open for further replies.
Back
Top