Images for Christmas
Archive - Originally posted on "The Horse's Mouth" - 2008-12-21 00:34:39 - Graham EllisFor just the winter holiday season, we'll be changing the image in our page header at seven minutes after five each morning. Will we be up at that time, then? Well - we might be but to make it consistent, we're using a crontab job on the server.


I have to admit that after 30th December, this post is going to look a trifle boring. If you want to click here, here and here, you'll see the images for the holiday season. And here are the crontab lines ... as examples.
7 5 18,21,24,27,30 12 * cp /home/(dirname)/tdv.jpg /home/(dirname)/WHClogoBW.jpg
7 5 19,22,25,28 12 * cp /home/(dirname)/tsc.jpg /home/(dirname)/WHClogoBW.jpg
7 5 20,23,26,29 12 * cp /home/(dirname)/tho.jpg /home/(dirname)/WHClogoBW.jpg
7 5 31 12 * cp /home/(dirname)/WHClogoRegular.jpg /home/(dirname)/WHClogoBW.jpg
The first three lines rotate the images from 18th to 30th December each year, and the final line switches it back on New Year's Eve.