Category Archives: Programming

App::perlbrew

Last summer I decided I would learn Perl.  I had put it off for a long time, but after trying and failing at learning Python, I decided to give Perl a go. Managing the perl installations has been tedious.  I … Continue reading

Posted in Perl | Tagged | Leave a comment

Film Sorter Script

On my server I have a store of films located at /share/media/movies.  Using NFS I share this directory to various other computers on my home network.  For a long while Faye has been asking me to categorise them into genres … Continue reading

Posted in Perl | Tagged , , , , , | Leave a comment

Let’s sandbox the lot!

Yesterday, two stories emerged which caught my attention, the first was saying how Dell has created a version of Firefox that runs in a sandbox, the second said how Adobe are going to sandbox Reader. I find it interesting that … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

Dissertation is over…

I meant to blog about this ages ago!  Better late than never I suppose… Back in April (April 22nd to be precise) I handed in two copies of my 72 page document which outlines everything about my project.  I wanted … Continue reading

Posted in Bash/Shell, OpenSolaris, Uni | Tagged , , , , , , , | Leave a comment

Robust Bash Scripts – Part Four

This is part of a series of posts which should aid anyone writing Bash scripts to make them more robust. This post describes how you can use traps to help your code fail more gracefully.

Posted in Bash/Shell | Tagged , | Leave a comment

Robust Bash Scripts – Part Three

This is part of a series of posts which should aid anyone writing Bash scripts to make them more robust. This post offers some advice on how to Bash script defensively.

Posted in Bash/Shell | Tagged , , , | Leave a comment

Robust Bash Scripts – Part Two

This is part of a series of posts which should aid anyone writing Bash scripts to make them more robust. This post shows you how to use Bash’s built-in error checking.

Posted in Bash/Shell | Tagged , , | Leave a comment

Robust Bash Scripts – Part One

This is part of a series of posts which should aid anyone writing Bash scripts to make them more robust. This post shows you how you can guard against unset variables.

Posted in Bash/Shell | Tagged , , | Leave a comment

Whence and Whenceman

On the UNIX command line, the `which` command is great, it tells you where a command is in the system.  However, if your system has two versions of the `ls` command, it will only tell you which `ls` command you … Continue reading

Posted in Bash/Shell, Linux, Mac OS, OpenSolaris | Tagged , , , , | Leave a comment

Bash and SED script to play…Tetris…?

If you navigate your browser to here, you will find a most amazing thing: Tetris crafted out of a SED script with a bash wrapper.  The page is in Russian, but Google or another translation site will tell you that … Continue reading

Posted in Bash/Shell | Tagged , , , | Leave a comment