From owner-freebsd-questions Sun Jan 23 22:44:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from snail.ite.mh.se (snail.nts.mh.se [193.10.250.30]) by hub.freebsd.org (Postfix) with ESMTP id 177DB14C89 for ; Sun, 23 Jan 2000 22:44:55 -0800 (PST) (envelope-from forda@ite.mh.se) Received: from oden (forda@oden [10.14.4.5]) by snail.ite.mh.se (8.9.1/8.9.1) with ESMTP id HAA26333 for ; Mon, 24 Jan 2000 07:44:09 +0100 (MET) Date: Mon, 24 Jan 2000 07:41:58 +0100 (MET) From: Daniel Forsgren X-Sender: forda@oden To: freebsd-questions@freebsd.org Subject: Disable crontab error mails Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I've set up a series of crontab scripts that updates a web page with system information for a cluster of FreeBSD machines (top, df etc for each machine). On each machine there's a script that periodically updates its sysinfo text file to the local disk, and the machine with the web server runs a script that periodically copies these local sysinfo files to the www folder through NFS (all disks are mounted on the web server). Now, the problem is that if one machine happen to be down, I get a bundle of error mails from cron since one of the disks it tries to copy from is not mounted. Is there some way to disable error mails from cron? Or could I incorporate some kind of "if the file exists"-check in the script? Thanks in advance, /Daniel F. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message