LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-13-2002, 08:41 AM   #1
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Rep: Reputation: 30
wget and auto resuming after disconnect


I'm trying to see if wget can automatically resume if i get disconnected, what i'm aiming to do is download massive files on my 56k modem over night, i have set kppp to re-connect once disconnected, but i wish to know if there is an option or an alternative program which allows me to continue downloading whatever i was downloading before i got disconnected...thanks

Garry
 
Old 10-13-2002, 08:52 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
how about reading the wget manpage? "-c"
 
Old 10-13-2002, 03:13 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Absolutely Chris, but I think he wants it to go a little further...

wget -c http://www.whoknow.com/files/file.iso will give you the resuming of the file, but that has to executed by a user.

I think he wants wget to automatically continue trying until his connection comes back up.

So somehow put wget into a loop, but that is beyond me, I am just saying what I think he meant.

Cool
 
Old 10-13-2002, 03:23 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well that's nothign hard, just put it in a conditional loop based on a ping for example, or possibly just a plain unconditional loop, with a sleep 30 timeout or something...
 
Old 10-13-2002, 04:12 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
How do you place something in a loop, unconditional or not?

with a pipe? Or what?
 
Old 10-14-2002, 02:17 AM   #6
GT I.N.C
Member
 
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Original Poster
Rep: Reputation: 30
hmmm this is confusing me...i knew about the '-c' but yeh i said if i get disconnected...it doesn't work...

Garry
 
Old 05-10-2003, 07:45 AM   #7
yossarian
LQ Newbie
 
Registered: Apr 2003
Location: london
Distribution: slackware current
Posts: 5

Rep: Reputation: 1
I had exactly the same problem, but the answer is to be found in the man page. This is the first time I've done this so be gentle

I use kppp set to auto-redial and the following command

wget -c -t 0 --timeout=60 --waitretry=60 URL OF THE FILE

ok so let's break it down

-c will use the partially downloaded file

-t 0 is the number of retries; in this case 0 = infinite

--timeout=60 is the length, in seconds, of inactivity after which the download will timeout

--waitretry=60 is the length of time, in seconds, between retries

you can play around with the timings, but I have tested this a few times already and it worked every time.

Last edited by yossarian; 05-10-2003 at 07:52 AM.
 
1 members found this post helpful.
  


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
How do I: Auto disconnect modem. cachinnare Linux - Networking 3 02-09-2005 12:52 AM
Black screen after resuming from sleep berbsd Linux - Laptop and Netbook 2 12-01-2004 11:49 AM
auto detect disconnect / connect vb7prog Linux - Networking 1 11-18-2004 04:26 AM
Mandrake 10 - Resuming from Standby Gringo Linux - Newbie 1 08-03-2004 02:37 PM
Resuming upload with Proftpd JimKyle Linux - Networking 2 03-07-2002 11:30 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration