On 09/07/12 20:52, Dr. Trigon wrote:
Sorry, this copy'n'paste is useless - thus I
attached the file
here.
On 09.07.2012 19:20, Dr. Trigon wrote:
So no answer at all... that's a pitty!
> To have at least some information, I wrote a small script:
Sorry Trigon, but it doesn't work.
It is calculating the percentage of the hard limit at which your soft
limit is set. Not really what you wanted :)
Moreover, even if you fixed it ( float(size[0])/float(size[1]) ), it
has problems with eg. using 600.0K out of the 500.0M quota.
Also, no need to hardcode the email address. You could simply run:
(echo Subject: You are reaching your quota && quota -v ) | mail $USER