I always just used the following script in the /etc/csh.login:

#if ("`quota | grep '\*'`" != "") then
#   echo Warning: Quota Exceeded:
#   quota
#endif

Given that the output of the quota command is fairly parseable, a little
bit of scripting or perl should do the trick.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
[EMAIL PROTECTED]      Network Associates Laboratories

On Tue, 11 Jun 2002, Paul S. Puth wrote:

> Hi,
> 
> I am looking for a tool that will email to the user if his/her account 
> (more specifically email box) is approaching quota limit. I've searched 
> everywhere for such a tool but to no avail.
> 
> On Linux, there is a tool called "warnquota" that fits my need but I am 
> running FreeBSD 4.5 -RELEASE so I can't utilize that tool. Also, from 
> searching on google, I've found a tool called "psntools" that has the 
> warnquota feature but it doesn't work on a filesystem that has a mailspool.
> 
> Can someone help me?
> 
> Thanks,
> 
> Paul
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of the message
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to