Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jdavidb (1361)

jdavidb
  (email not shown publicly)
http://voiceofjohn.blogspot.com/

J. David Blackstone has a Bachelor of Science in Computer Science and Engineering and nine years of experience at a wireless telecommunications company, where he learned Perl and never looked back. J. David has an advantage in that he works really hard, he has a passion for writing good software, and he knows many of the world's best Perl programmers.

Journal of jdavidb (1361)

Monday September 18, 2006
08:25 AM

Reminder: never reinvent the wheel (df)

[ #31041 ]

The drive with all of the files I pull and parse filled up over the weekend, so after clearing out what needs to be cleared out, I'm of course going to try to avoid the problem by writing a small program to email me with a warning every day if the drive is more than 80% full. Initially I was thinking of parsing the output of df, but I gave CPAN a quick check and found Filesys::DfPortable, which gives me everything I want. Far better to use someone else's debugged code.

Of course, really I'm still reinventing the wheel, because I should use an existing monitoring package like Big Brother or something to send these alerts. But that would require infrastructure support from above which I do not have. I could perhaps obtain it, but this box is slated for replacement anyway.

Update: arranged to get Big Brother to alert me after all, shouting over the cube wall. I had no idea support for this was even in my building. :)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.