Craig Russell

Web n That

I ♡… the web… php… html… css… linux… shell scripting… folding paper… dog walking… sandwiches… being outside… and most of all @vicuol ☺

Crontab Debugging

December 22nd, 2008

Sometimes, a script which works perfectly fine when run from the shell, fails when run as a cron job. It’s often quite difficult to debug these problems, but to make the task a little easier, try this. Edit the crontab file with crontab -e Add this line for your script…

CSS Pop-Out Rollovers

December 18th, 2008

Here’s how to acheive the appearence of text popping out as you hover over it with your mouse. It’s a simple effect that can be acheived with nothing more than a little CSS. I’ve used this on the title’s of each blog post, but I also think it looks quite…

BASH Variable Scope in While Loop

December 8th, 2008

Here’s an annoying little foible of BASH shell scripting. I’ve been trying to writea script to test authorization against a list of servers, and fire off an email if any of the servers doesn’t respond. The lis tof servers is in a text file, and I’ve got a while loop…