|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Quota warning cronjob?
From: Diego Alvarez (diego.alvarez
microserv.cl)
Date: Wed Dec 01 2004 - 14:59:11 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Dec 01, 2004 at 09:54:07PM +0100, Ralf Hildebrandt wrote:
> * Diego Alvarez <diego.alvarez
microserv.cl>:
>
> > #! /bin/sh
> >
> > # check if quota package is available
> > test -x /usr/sbin/warnquota || exit 0
> >
> > # check if warnquota run is configured
> > test -f /etc/default/quota || exit 0
> > . /etc/default/quota
> >
> > if [ "$run_warnquota" = "true" ]; then
> > # check if quotas are enabled
> > if grep -q '^[^#]*quota' /etc/fstab; then
> > /usr/sbin/warnquota
> > fi
> > fi
> >
> > exit 0
> >
> > --------------------------------------------------------
> >
> > warnquota comes with quota package (on Debian GNU/Linux), but I dont
> > know what O.S. are you using, so this may be useless :)
>
> You are my hero :) Of course I do use Debian :)
I forgot to mention that that script is really /etc/cron.daily/quota
(which comes with the quota package also)
> --
> Ralf Hildebrandt (Ralf.Hildebrandt
charite.de) spamtrap
charite.de
> http://www.arschkrebs.de/postfix/ Tel. +49 (0)30-450 570-155
> Why you can't find your system administrators:
> The admin is chained to their desk in a dungeon only the CEO has the key for.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]