LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   wget?? (https://www.linuxquestions.org/questions/linux-newbie-8/wget-353116/)

Solvaut 08-14-2005 09:00 AM

wget??
 
Hi on my new linux server i want to download a file but the file is large and takes 3-4 hours to finish but im have to let others people on the computer and need to close puTTy

is there a command where i can exit puTTy but still keep the download going?

example

once logged into root i download the file
wget http://somethinghere.file.asdfasdfsd...al-website.com
It downloads the file but then 30 minuets later its still on 2% is there some kind of command i can push to keep the download still going but off puTTy?
I want be able to exit puTTy but keep the download going :o :scratch: duno how

jcliburn 08-14-2005 09:15 AM

Use the nohup command. (man nohup)

trlblzr 08-14-2005 09:15 AM

If I'm not mistaken, you can use 'nohup' to prevent your program from exiting when SSH 'hangs up'.

Code:

nohup wget http://the.web.site
hope that helps,
trlblzr

edit: aw man, just missed it ><

Solvaut 08-14-2005 09:22 AM

k now i am copying files to another server hows can i have it so it dont hangup?? Is there a command for that?

its already copying and now copying one of the most bigest files is it too late for me to enter that command in?

Solvaut 08-14-2005 09:24 AM

ok now it stalled

ztoysns.zip 15% 53MB 54.1KB/s - stalled -Killed by signal 2.

what do i do??

lfur 08-14-2005 09:27 AM

Hi,

there is another way. Screen is the name :)
When you log in the machine, run:

Code:

screen
Then start downloading and when you have to log off, just hit ctrl-a and ctr-d which will detach the screen and you will be able to log off the system withouth stopping the download - it will stay active in the detached screen. When you come back just log in normally and run:

Code:

screen -r
and the screen session will reatach. (The screen session can be terminated with exit or logout.)

Solvaut 08-14-2005 09:30 AM

:study: :study: thanks!!!!


so login to the server that is trasnfering the files to the other server?? or login the server that is reciving the files?

and what happen if the server stalls again what can i do to make it countinue to download where it stalled at?

lfur 08-14-2005 09:42 AM

What ever you want.

Example:

my machine = MyMachine
server = Server

There is a file on the Server i want do download to MyMachine but my sister want's to use the computer right away, and I'm not giving her my account privileges, which means i'll have to log off so she logs on. What do I do?

I log in as usuall. And then:

Code:

$ screen
$ wget Server/me/wants/this/file &
$ ctrl-a ctrl-d

screen is now detached and within that screen there is a wget downloading the file I want.

And when I come back (when my sis finishes her work) I log in again and run:

Code:

$ screen -r
and screen reataches .. I'm right there where I left my work.

jcliburn 08-14-2005 09:44 AM

I can't quite figure out what you're trying to do... Is it this?

Login to computer 1, a windows machine.
Use putty to ssh into computer 2, a linux machine.
Transfer a file from computer 3 to computer 2.
Logout of computer 2 and computer 1 while the transfer takes place.

If this is correct, what type of machine is computer 3? Is it on your LAN? Can you get to the file only through http?

Solvaut 08-14-2005 11:10 PM

I can already trasnfer the files but it says the download

stalls

how can i have it not to stall, is my question?


All times are GMT -5. The time now is 08:40 PM.