Thursday 29 August 2013

First!

So this is a first for me, it's really not much but it feels good to finally have actually done this:

I have just written a simple shell script that actually uses features like cases and variables.  It's a really simple thing to program but this is the first time I've ever used a script to do it.

For the record: it reads an error log file, pulls out only the lines that are relevant to my sandbox copy of the website and then returns the lines either for a day passed to the script or today if no day is passed in.

I read the server error logs a fair bit; they're more useful for debugging than I think most people know.

Only 10 lines of script but I like it.

No comments:

Post a Comment