#!/bin/sh
# See http://steve-parker.org/code/sh/bbc/
# Suitable to be run from cron...
# 
# (Use to post in the top of your crontab)
# ----------------- minute (0 - 59)
# |  -------------- hour (0 - 23)
# |  |  ----------- day of month (1 - 31)
# |  |  |  -------- month (1 - 12)
# |  |  |  |  ----- day of week (0 - 7) (Sunday=0 or 7)
# |  |  |  |  |
# *  *  *  *  *  command to be executed
# 
# So your crontab, to get the "Bells On Sunday" at 9am every Sunday morning,
# would look like this:
# 0 9 * * 0 /path/to/this/script

# Move to the "Bells On Sunday" directory...
cd /var/tmp/bellsonsunday

# Download the latest one...
bbc.sh -4 bellsonsunday

# Okay, we've got bellsonsunday. Rename it bellsonsunday25012007.mp3
# (because today is 25th Jan 2007 ... 25=>25, Jan=>01, 2007=>2007)
mv bellsonsunday.mp3 bellsonsunday.`date +%d%m%Y`.mp3

# Now we can save the Bells on Sunday every week.

