LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 03-25-2012, 03:23 AM   #1
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: CentOS, MacOS, [Open]SuSE, Raspian, Red Hat, Slackware, Solaris, Tru64
Posts: 1,241

Rep: Reputation: 80
Defining a time limit for wget


I have a need to download a couple of DVD ISO files using a slow network connection. What I would really like to do is limit the downloads to only occur during a window when nobody else's use of the slow net connection would be affected, i.e., we limit the downloading to occur only between, say, 11:00PM and 7:00AM. It's understood that it'll take several evenings to complete the download of each ISO file.

(Aside: I'm finding that I need to do this because nobody seems to want to sell physical media any more. Yes, I'm aware of folks like Cheapbytes but the versions they sell are usually outdated.)

I was thinking that wget could do this -- the "--continue" switch immediately came to mind -- but I haven't been able to find a switch that limits the connection and data transfers to a particular length of time.

It's beginning to look like my only option is to set up a couple of cron jobs: one to start the transfer and a second to kill the wget process at the end of the desired window. Or is there some other way to do this that I've missed?

TIA...

--
Rick
 
Old 03-25-2012, 05:57 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,393
Blog Entries: 55

Rep: Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565
If you're on a 14k modem or equivalent then a cronjob may be all that remains to D/L at full speed at night but using the --limit-rate=2.5k switch you could limit retrieval rate to 2.5KB/s or whatever bandwidth you can set aside during the daytime.
 
Old 03-25-2012, 09:49 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: CentOS, MacOS, [Open]SuSE, Raspian, Red Hat, Slackware, Solaris, Tru64
Posts: 1,241

Original Poster
Rep: Reputation: 80
Quote:
Originally Posted by unSpawn View Post
If you're on a 14k modem or equivalent then a cronjob may be all that remains to D/L at full speed at night but using the --limit-rate=2.5k switch you could limit retrieval rate to 2.5KB/s or whatever bandwidth you can set aside during the daytime.
I thought about doing something like that but, even though it's an IDSL connection, I will not want to use the connection at all for the downloads when other people are trying to use the internet connection. Letting wget go full throttle only during the "off" hours is as good as I'm going to get. Switching between two different rates (slightly) complicates the crontab entries and I'm not sure that only letting a rate of 2-3K during the day helps that much.

Thanks for the input. Now I a couple of shell scripts to write...

--
Rick
 
  


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
First time using wget NightSky Linux - Software 10 10-12-2009 06:30 PM
Defining loop statement for creating new file each time neo009 Linux - Newbie 6 04-12-2009 07:49 AM
Wget quiz && size limit? Zmyrgel Slackware 2 08-14-2006 08:07 AM
File size limit exceeded with wget jimdaworm Slackware 1 04-24-2005 04:06 AM
any possible way to limit wget d/l speed? ziggie216 Linux - Software 3 10-13-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration