LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-14-2005, 10:00 AM   #1
Solvaut
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Rep: Reputation: 0
Question 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 duno how
 
Old 08-14-2005, 10:15 AM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Use the nohup command. (man nohup)
 
Old 08-14-2005, 10:15 AM   #3
trlblzr
LQ Newbie
 
Registered: Aug 2005
Location: Illinois
Distribution: Fedora Core 2
Posts: 3

Rep: Reputation: 0
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 ><
 
Old 08-14-2005, 10:22 AM   #4
Solvaut
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 08-14-2005, 10:24 AM   #5
Solvaut
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
ok now it stalled

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

what do i do??
 
Old 08-14-2005, 10:27 AM   #6
lfur
Member
 
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Rep: Reputation: 30
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.)
 
Old 08-14-2005, 10:30 AM   #7
Solvaut
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
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?

Last edited by Solvaut; 08-14-2005 at 10:34 AM.
 
Old 08-14-2005, 10:42 AM   #8
lfur
Member
 
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Rep: Reputation: 30
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.
 
Old 08-14-2005, 10:44 AM   #9
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
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?
 
Old 08-15-2005, 12:10 AM   #10
Solvaut
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
I can already trasnfer the files but it says the download

stalls

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't wget!! aru_04 Linux - General 5 08-13-2005 06:07 AM
wget noir911 Linux - Newbie 8 07-30-2005 09:57 AM
wget Harp00 Linux - Newbie 4 11-15-2004 08:27 PM
wget toastermaker Linux - Software 4 11-13-2004 11:59 AM
wget filex Linux - Security 4 09-08-2004 09:02 PM


All times are GMT -5. The time now is 06:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration