From owner-freebsd-questions Wed Jun 18 21:42:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA05277 for questions-outgoing; Wed, 18 Jun 1997 21:42:28 -0700 (PDT) Received: from aak.anchorage.net (ai-136.anchorage.net [207.14.72.136]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA05270 for ; Wed, 18 Jun 1997 21:42:23 -0700 (PDT) Received: from localhost (abc@localhost) by aak.anchorage.net (8.8.5/8.8.5) with SMTP id UAA04294; Wed, 18 Jun 1997 20:30:56 -0800 (AKDT) X-Authentication-Warning: aak.anchorage.net: abc owned process doing -bs Date: Wed, 18 Jun 1997 20:30:54 -0800 (AKDT) From: Steve Howe X-Sender: abc@aak.anchorage.net To: Justin Ashworth cc: questions@FreeBSD.ORG Subject: Re: out of disk space In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 18 Jun 1997, Justin Ashworth wrote: > Has anybody ever heard of a daemon that would can notify a sysadmin via > e-mail if the diskspace hits a certain percentage? I'd need to know > immediately, so a cron job is out of the picture. i haven't heard of one, but it seems easy enough for a simple sh "daemon". something along the lines of (run in background) #!/bin/sh toofull=90 while [ 1 ]; do sleep 60 pfull=`df | grep /dev/partition | cut -c 44-45` if [ $pfull -gt $toofull ]; then echo TOO FULL!; fi done ------------------------------------------------- FingerPrint BA09868C 1B995204 58410FD3 A5E7B2DA http://www.geocities.com/siliconvalley/way/7747 -------------------------------------------------