LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-19-2011, 01:12 PM   #1
misterJ
LQ Newbie
 
Registered: Feb 2003
Location: California
Posts: 7

Rep: Reputation: 0
How to resume an interrupted wget using wget.log?


If a wget download is interrupted (like if I have to shutdown prematurely), I get a wget.log with the partial download.

How can I later resume the download using the data in wget.log? I have searched high and low (including wget manual) and cannot find how to do this. Is it so obvious that I did not see it?

The wget -c option with the wget.log as the argument to the -c option does not work.

What I do do is open the wget.log and copy the URL and then paste it into the command line and do another wget. This works but the download is started from the beginning, which means nothing in the wget.log is used. There's got to be a better way, I assume. But how?

Running Kubuntu. Thanks.
 
Old 06-19-2011, 02:19 PM   #2
speck
Member
 
Registered: Nov 2001
Location: California
Distribution: Slackware 14.1
Posts: 281

Rep: Reputation: 55
wget -c will resume the download from the point where it stopped (will append to the partially downloaded file). I'm not sure why you're trying to use the wget.log file in this instance.

Code:
user@host$ wget -c 'ftp://slackware.mirrors.tds.net/pub/slackware/slackware-13.37/slackware/xap/mozilla-firefox-4.0-i486-2.txz'
--2011-06-19 11:13:00--  ftp://slackware.mirrors.tds.net/pub/slackware/slackware-13.37/slackware/xap/mozilla-firefox-4.0-i486-2.txz
           => "mozilla-firefox-4.0-i486-2.txz"
Resolving slackware.mirrors.tds.net (slackware.mirrors.tds.net)... 204.246.0.134
Connecting to slackware.mirrors.tds.net (slackware.mirrors.tds.net)|204.246.0.134|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/slackware/slackware-13.37/slackware/xap ... done.
==> SIZE mozilla-firefox-4.0-i486-2.txz ... 11465820
==> PASV ... done.    ==> RETR mozilla-firefox-4.0-i486-2.txz ... done.
Length: 11465820 (11M) (unauthoritative)

54% [=============================================>                                       ] 6,304,320    618K/s  eta 12s     

user@host$ wget -c 'ftp://slackware.mirrors.tds.net/pub/slackware/slackware-13.37/slackware/xap/mozilla-firefox-4.0-i486-2.txz'
--2011-06-19 11:13:27--  ftp://slackware.mirrors.tds.net/pub/slackware/slackware-13.37/slackware/xap/mozilla-firefox-4.0-i486-2.txz
           => "mozilla-firefox-4.0-i486-2.txz"
Resolving slackware.mirrors.tds.net (slackware.mirrors.tds.net)... 204.246.0.134
Connecting to slackware.mirrors.tds.net (slackware.mirrors.tds.net)|204.246.0.134|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/slackware/slackware-13.37/slackware/xap ... done.
==> SIZE mozilla-firefox-4.0-i486-2.txz ... 11465820
==> PASV ... done.    ==> REST 6324480 ... done.    
==> RETR mozilla-firefox-4.0-i486-2.txz ... done.
Length: 11465820 (11M), 5141340 (4.9M) remaining (unauthoritative)

100%[++++++++++++++++++++++++++++++++++++++++++++++======================================>] 11,465,820   579K/s   in 9.7s    

2011-06-19 11:13:38 (519 KB/s) - "mozilla-firefox-4.0-i486-2.txz" saved [11465820]
 
Old 06-19-2011, 02:21 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,969

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
http://www.cyberciti.biz/tips/wget-r...-download.html

The problem is has a few deals to it. One is the source has to have the ability to resume and your local file has to be good and in the correct directory that wget is now trying to use.

Better check the download checksum when done.
 
  


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
Suggest a wget gui with resume support for a NAS AndyHTC Linux - Software 1 06-02-2009 10:21 PM
wget not working! but "man wget is" ??? wrapster Solaris / OpenSolaris 5 07-30-2008 04:00 AM
wget resume filename Hegemon Linux - Software 3 11-01-2007 09:31 AM
How do I resume interrupted download ? pppaaarrrkkk Linux - Newbie 6 09-30-2007 12:28 PM
Resume interrupted frugal_lite install poqui DamnSmallLinux 0 03-19-2006 10:17 PM


All times are GMT -5. The time now is 02:36 AM.

Main Menu
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