Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: Outside Mena, Arkansas in the Ouachita mountains (hills really).
Distribution: Ubunto Studio 16.04 LTS
Posts: 9
Rep:
Cron, Command line, Internet, Downloading
I live in the boonies in Arkansas. I run Ubuntu Studio 16.04. My Internet provider is Exede (satellite). I like to tinker with Linux distributions and listen to old time radio shows. Both of these require large downloads. Exede punishes those who exceed (no pun intended) their usage limits with glacial speeds and/or $10.00 per gig prices. However, they will allow one to download FREE in the wee hours. But my wife, the cat, and our two dogs object to my getting up and blundering around in the middle of the night to download stuff.
I have used cron in years past while supporting Novell networks in Texas. I haven't used the command line much because I could do what I needed to without it until now. I know nothing about using the command line in an internet context and not a lot otherwise. So, how do I educate myself with a view to writing scripts that will allow me to indulge myself?
Thanks for listening (reading)
Johnnyreb (YeeeHah!)
The full manual page for "wget" is worth reading, it's got a ton of options. If you're just scheduling one-off jobs, then "at" is another option for you.
Location: Outside Mena, Arkansas in the Ouachita mountains (hills really).
Distribution: Ubunto Studio 16.04 LTS
Posts: 9
Original Poster
Rep:
Onward and Upward through the fog
LQers,
Thanks for the replys.
Cron works like a charm but I have a problem with wget. The URL I am trying to download is: https://archive.org/compress/The_Bob...am/formats=VBR MP3&file=/The_Bob_Hope_Program.zip. All the download links on this site use this syntax. Wget says it can't resolve MP3 (there is a space after VBR/[url]). Is there a workaround? I've read the man pages for wget and curl but I don't understand a lot of what is there. I didn't find any mention of URL's with spaces.
The URL is what shows at the bottom of thy Firefox page when I put the mouse on the download button. If I run the URL straight from Firefox, the download starts.
The full manual page for "wget" is worth reading, it's got a ton of options. If you're just scheduling one-off jobs, then "at" is another option for you.
Second this, OP is defining a specific link, not referring to something like "latest"
OP doesn't define what "wee hours" means, but assuming 2am
Code:
# Example: echo 'command "argument"' | at time
echo 'wget "https://archive.org/compress/The_Bob_Hope_Program/formats=VBR%20MP3&file=/The_Bob_Hope_Program.zip"' | at 0200
This will run the wget command the next time 2am rolls around.
Also watch to see if your computer goes into sleep mode to preserve power.
Personally, if you plan on doing this more frequently, I'd suggest getting something like a Raspberry Pi so that you can run it 24/7 - so that your main computer doesn't have too (and drain too much power)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.