We needed to check a file was being written to a remote server at least every 15 minutes or so. This bash script, run as a cron job, uses curl to get the HTTP headers and then sed to extract “Last Modified” time. The actual log file is not downloaded.
LASTMOD=` /usr/bin/curl -Is http://www.example.com/logs/log.txt | /bin/sed -n 's/^Last-Modified: *\([^ ]*\) */\1/p' `
LASTTIME=$(/bin/date +%s -d "$LASTMOD")
DIFF=$(($START - $LASTTIME ))
if [ "$DIFF" -gt "900" ]
MAIL_TXT="Subject: Log file not updating\nFrom: email@example.com\nTo: firstname.lastname@example.org\n\nAge is $DIFF"
echo -e $MAIL_TXT | /usr/sbin/sendmail -t
Cron entry is
*/15 * * * * /home/robin/checkweblastmod.sh
Testing out another mailchimp plugin. This time to broadcast your blog post to Twitter and Facebook. See http://wordpress.org/extend/plugins/social Tip: Remember to select “Broadcast Post”
Mailchimp has a wordpress plugin. This is a post to test email sending!
I used instructions at http://www.stuffedweb.com/automatically-email-latest-post to set up an rss automated campaign. The list is subscribed to via the Mail Chimp List plugin widget.
This is a link style post.
We have set up 2 new WordPress blog websites. This is part of a new initiative to provide quick, cost effective blog websites for a diverse group of businesses.
Bluelighthost are doing a free 7 day trial (http://www.bluelighthost.com/our-services). It look great so I gave it a spin. 1/2 day later I had Ubuntu, Nginx, MySQL running a WordPress mu. Brilliant! You get a medium VM for £15 ex vat so, after checking my vm would stay alive I signed up. Next day my vm was gone Apparently I didn’t choose an upgrade. They couldn’t restore it and I got passed from pillar to post (the number on the support ticket was iCloud not Bluelighthost). When I eventually got through to Bluelighthost they told me to send an email! They did answer the email quickly but by that time I had restored an image of my server to a home machine and was slightly annoyed. They refunded my money without question.
Conclusion: Probably a good service but some organisational teething problems. Always keep backups and triple check when upgrading that your vps will survive.
I’ve just come to the end of my free Amazon EC2 Micro Instance (see http://aws.amazon.com/free). After 1 month of paying I’m over $15 for a tiny site with all the OS updating turned off! Imagine what would happen if you got hit by dos.
Conclusion: great service, to difficult to cost and to liable to unexpected bills.