Well, all the variables/values should already be there for you to craft an appropriate message. have you read the code and understood it? If so, then I would hope that you would have the information to acheive this.
Sizes reported by
du differ by installation, but you should get KB by using the
-k flag, or there may be other options available to you. Check the manual page.
Subdirectoriesare being explicitly rolled into the parent directory with
-s Again, check your man page for any other variations that might be available. If you want all sub-directories then this vastly increases the risk that it will go seriously
wild
if a user creates or deletes a directory. Probably best to give a top level report and instruct users how to check subdirectory usage themselves.
Have you considered enforcing some sort of quota? Various operating systems allow you to set a quota. Another way would be to have a report run each day that reports anything large, but that will probably lead to manual checking I'm afriad.
I hope that this helps,
Robin
Liverpool/Blackburn