Script to notify users of a disk filling up?

2007-12-24 21:20:00

Hi folks,

Does anyone have a nice script that automatically emails the users who are
taking up the majority of space on a disk which is close to capacity?

Currently I have to run :-

mymachine> du -ks /home/ermintrude/* | sort -nr | head

and email the users manually. I'm using the general threshold of
95% before I warn users to clean-up.

I am a complete beginner where perl and shell scripting is concerned I'm
afraid.

Any suggestions appreciated, will summarise of course.

Regards
----
Mark .I. Mahabir (XMM SSC Computer Operator)
Dept of Physics & Astronomy,
University of Leicester, Phone +44 116 252 5652
Leicester, LE1 7RH, U.K. Fax +44 116 252 3311

Comments

Got something to say?

You must be logged in to post a comment.