Yet another log analyzer for Squid proxy server. I’ve wrote this one around 2001, but it should still work.
I’ve wrote this script back in 2000, when I was working for J.F.Services Ltd. I needed regular summary reports for disk usage by different users. It is similar to reports sent by repquote. The only reason I used my own script is that I didn’t have any quotas set up at that time.
As for me – I use Perl and I am not planning to change any time soon. There are two major bonuses in Perl for my programming tasks:
- CPAN – Comprehensive Perl Archive Network. This is a huge collection of modules that help me to avoid as much programming as possible. And that’s pretty much.
- Perl’s scalability to all sorts of tasks. I am using Perl for one-line long utility scripts, log analyzing, mail searching, graph building, database maintenance, web programming and anything else that pops up. The broadness of tasks makes PHP way underpowered and Java way too complex. There are tools that might come handy (like Python), but why change if Perl works for me?
Said that, I am familiar with other languages, since it’s not rare at all that I need to patch someone else’s code. PHP being a widely used language for web development comes to my hands pretty often. My Python familiarity is more on the system level and GUI programming.
Ok, we all know that to repeat the last command in bash (as well as many other shells) you just need to press the Up key. Sometimes though it is handy to test a command before using it as a subset of a bigger command.
Spent most of the weekend reading the Eric Raymond’s draft of The Art of Unix Programming, which appears to be surprisingly usefull and easy to read. I think I’ve already recommended to all people that I know. If I haven’t, here is your chance.