Thanks Lloyd. I will not confirm nor deny that I will use this script.Regards,
AlexOn Tue, Apr 21, 2015 at 11:36 AM, Kelvin via skunkworks <skunkworks@lists.my.co.ke> wrote:Excellent, thanks!On Tue, Apr 21, 2015 at 9:57 AM, Lloyd N. via skunkworks <skunkworks@lists.my.co.ke> wrote:_______________________________________________Hi skunks,
Sadly, it took me the the better part of 15 minutes to resolve why i was getting a "404 Error" whilst trying to download today's ePaper. A minor oversight of the date's suffix on the download link thus having the date parsed as "21th" instead of "21st". "Garbage In - Garbage Out" indeed.
I've decided a small bash script is in order. One that: -
a) Looks up the machine's current day/month/year and stores them in variables.
b) Appends the correct suffix/ (i.e 1st, 2nd, 3rd etc) to the respective day's date.
c) Passes the variables in the URL, automatically downloading the ePaper via 'wget' command.
In case you are on Linux/OSX and prefer to skip the daily URL edit ritual, feel free to download it.
i. Make it executable. ~$ chmod +x daily
ii. Run it via terminal. ~$ ./daily
--
Kind Regards,
Lloyd Njunge.
Cell: +254 723 739 733
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke
_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke
_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke