You are currently browsing the FRP weblog archives for February, 2007.

Snowed in!

I got up this morning to find four inches of snow outside. The roads are pretty dangerous and blocked up with either snow or other vehicles that have got stuck. So no work today. The photo below is the view from our bedroom window looking up towards the currently invisible hills.

View of Great Malvern Priory looking out from the back of the flat

Download eMusic free track script

eMusic offers a free track of the day to download. Being a bit lazy or forgetful I wrote a script to download the track for me. To make use of this script you need a computer that runs Perl and cURL. To set up the script to run automatically you ideally need the computer to be permanently switched on and connected to the internet.

Step 1

Download the eMusic download script, unzip it and edit the following lines:

CODE:
  1. $username = "name@domain.com";
  2. $password = "password";
  3. $scriptpath = "/users/name/emusic/";

Then upload to your remote shell account if you are going to run it that way.

Don't forget to make the script executable.

Step 2

Create a 'files' folder in the same place as the script. This is where the mp3's will get downloaded into.

Step 3

If you want to have the script run automatically then you need to set up a cron rule.