From owner-freebsd-current Tue Jun 11 14:31:57 2002 Delivered-To: freebsd-current@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id EB37F37B40D for ; Tue, 11 Jun 2002 14:31:50 -0700 (PDT) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.3/8.12.3) with SMTP id g5BLVPb5015554; Tue, 11 Jun 2002 17:31:25 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Tue, 11 Jun 2002 17:31:24 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: "Paul S. Puth" Cc: freebsd-current@freebsd.org Subject: Re: looking for warn quota tools In-Reply-To: <5.1.0.14.0.20020611152151.00acbb30@pop.oanet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 robert@fledge.watson.org 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 majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message