LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-15-2016, 11:28 AM   #1
johnnyreb
LQ Newbie
 
Registered: Aug 2014
Location: Outside Mena, Arkansas in the Ouachita mountains (hills really).
Distribution: Ubunto Studio 16.04 LTS
Posts: 9

Rep: Reputation: Disabled
Son of Cron, Command line, Internet, Downloading


Hi LQers,

Scheduled downloads from Exede have been going great thanks to you guys.

But now I have a problem with a particular URL. Here is the URL as shown in crontab:
"https://archive.org/compress/OTRR_Philip_Marlowe_Singles/formats=VBR%20MP3&file=/OTRR_Philip_Marlowe_Singles.zip"

It apparently fails at the "%" after "VBR" because the corresponding line in syslog looks like this:
CRON[4192]: (jnyreb) CMD (wget -c "https://archive.org/compress/OTRR_Philip_Marlowe_Singles/formats=VBR)

I've spent a couple of hours trying to find out whether cron has a problem with "%" or whether it makes bash unhappy. In my old DOS/Netware days I used to write scripts in basic and "%" was a method off defining a variable. But I can't anything about "%" and cron on the Inet. Probably because I'm looking in the wrong place(s).

So, if you guys can ride to the rescue I would be most grateful.

Thanks for your help.
Charlie Bishop
 
Old 11-15-2016, 11:36 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,367

Rep: Reputation: 5457Reputation: 5457Reputation: 5457Reputation: 5457Reputation: 5457Reputation: 5457Reputation: 5457Reputation: 5457Reputation: 5457Reputation: 5457Reputation: 5457
The problem is that the % is a special character in cron. You need to escape each % by adding a backslash i.e \%
 
Old 11-15-2016, 02:19 PM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 6,891
Blog Entries: 3

Rep: Reputation: 3575Reputation: 3575Reputation: 3575Reputation: 3575Reputation: 3575Reputation: 3575Reputation: 3575Reputation: 3575Reputation: 3575Reputation: 3575Reputation: 3575
I think michaelk addressed the "cron" aspect.

Another way to consider is a torrent. Transmission is a great client you might already have on your system. There are other good ones too. You can queue up a large number of torrents and then prioritize the ones to download first, so bandwidth gets utilized in an optimal manner. Archive.org has torrent options for most if not all of its material. An advantage with that is that the client has at least one time-dependent alternate bandwidth setting. So you could just set the alternate speed limits to 0k up and 0k down during your expensive hours and leave it go full out during the night.
 
Old 11-16-2016, 10:44 AM   #4
johnnyreb
LQ Newbie
 
Registered: Aug 2014
Location: Outside Mena, Arkansas in the Ouachita mountains (hills really).
Distribution: Ubunto Studio 16.04 LTS
Posts: 9

Original Poster
Rep: Reputation: Disabled
Man! You guys are cool.

Thanks for your help (again). It is really great to have folks I can ask about questions that I can't find answers to in books etc. because I don't know what to look up. At this rate I may learn something.

Thanks again.
Charlie Bishop
 
  


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
[SOLVED] Cron, Command line, Internet, Downloading johnnyreb Linux - Newbie 7 11-08-2016 01:50 PM
Downloading from the command line metalx1000 Linux - General 2 09-16-2006 11:06 AM
Downloading from a FTP site using command line Gins Linux - General 11 05-28-2005 05:13 PM
command line downloading ChaseCrum Linux - General 4 08-10-2004 07:43 AM
downloading from the command line tcut Linux - Software 2 09-27-2002 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:34 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
Open Source Consulting | Domain Registration