From owner-freebsd-questions Fri Jul 13 17:40:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hades.hell.gr (patr530-a080.otenet.gr [212.205.215.80]) by hub.freebsd.org (Postfix) with ESMTP id AECF737B403 for ; Fri, 13 Jul 2001 17:40:35 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: by hades.hell.gr (Postfix, from userid 1001) id 363D22BD; Sat, 14 Jul 2001 03:40:32 +0300 (EEST) Date: Sat, 14 Jul 2001 03:40:31 +0300 From: Giorgos Keramidas To: Daniel Frazier Cc: Joe Clarke , Graham White , FreeBSD-questions Subject: Re: Newbie Bash-question Message-ID: <20010714034031.B8428@hades.hell.gr> References: <20010713144955.P25152-100000@shumai.marcuscom.com> <3B4F4499.1020100@magpage.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B4F4499.1020100@magpage.com>; from dfrazier@magpage.com on Fri, Jul 13, 2001 at 02:57:29PM -0400 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: Daniel Frazier Subject: Re: Newbie Bash-question Date: Fri, Jul 13, 2001 at 02:57:29PM -0400 > here's the perl code we use to do this... > > #!/usr/bin/perl > ... > open (SENDMAIL, "|/usr/lib/sendmail -t"); > > print SENDMAIL < To: sysadmin\@magpage.com > Subject: Excessive Load Average ! Of course spawning a perl interpreter and a Sendmail process to do this work might increase the load average even more, and if you put this in a cronjob that runs every now and then, it can become even trickier :) Just a few random thoughts... -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message