So, I installed the MTPhotoGallery Movable Type plugin today. See the results at the upper left of the home page of the blog. Spiffy, no?!? This plugin allows display of image files based on various parameters. In this case, I’ve set it up to pull a non-thumbnail sized image from our honeymoon photo gallery. There are a few hundred pics in there – so repetition shouldn’t be too frequent. On top of that, I installed the MT-Rebuild module. That let’s me setup a cron job to regularly regenerate the blog, and update the picture. It’s supposed to update just after midnight – but it seems to update more frequently. More reading on CRON required now. Yawn…
Being only an amateur geek myself, I had to do some serious googling to figure out how to edit the crontab, and more frustratingly, how to exit the editor within my ssh connection. For those geeks out there, here is a recap of the commands.
Crontab editing commands:
crontab -e – generates a new crontab if none exists, or edit the existing one.
crontab -l – lists existing crontabs
crontab -r – deletes all existing crontabs
Once you are in the editor (vi? em? I just don’t know what it is, actually), you can type ‘i’ to begin inserting copy, and ctrl-c to return to ‘command’ mode. Once you have your entry correct, typing 😡 exits, saving changes while :q! exits, ignoring changes.
Here is the crontab I have running for this blog to run each day at 12:05am:
05 00 * * * /mt/mt-rebuild.pl -all