|
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: Ralf Hildebrandt (Ralf.Hildebrandt
charite.de)
Date: Wed Dec 01 2004 - 14:54:07 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
* 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 :)
--
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 ]