richofwombwell
Posts: 2
Joined: Tue Apr 30, 2013 4:57 pm

Automatic Downloader Programn

Tue Apr 30, 2013 5:02 pm

HI everyone, really new at this programming business.

I was wondering if its possible to set up a program so that downloads the same file hosted on a website on schedule monthly and if it would be difficult to program ?

Or better still if there's anything already available.

Cheers

Rich

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4258
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Automatic Downloader Programn

Tue Apr 30, 2013 5:44 pm

Two Linux commands in combination will do what you want.

wget fetches a single html document
cron executes a repetitive task at a configured interval

OtherCrashOverride
Posts: 582
Joined: Sat Feb 02, 2013 3:25 am

Re: Automatic Downloader Programn

Tue Apr 30, 2013 5:45 pm

cron can be used to set the schedule and curl can be used to retrieve the file.

http://en.wikipedia.org/wiki/Cron
http://en.wikipedia.org/wiki/CURL

Edit: Guess I need to be faster at posting as I was beaten to the punch.

richofwombwell
Posts: 2
Joined: Tue Apr 30, 2013 4:57 pm

Re: Automatic Downloader Programn

Wed May 01, 2013 9:37 pm

Brilliant thanks a lot, purchased my raspberry pi guide for dummy's the other day and looking at various sites on coding tutorials looking at python.

Is there some way to automatically boot into using those Linux parameters along with another piece of software on power-up ?

Regards

Richard

Return to “General programming discussion”