From owner-freebsd-questions Wed Jun 26 15:45:56 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA29992 for questions-outgoing; Wed, 26 Jun 1996 15:45:56 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA29986 for ; Wed, 26 Jun 1996 15:45:55 -0700 (PDT) Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) by who.cdrom.com (8.6.12/8.6.11) with SMTP id PAA28228 for ; Wed, 26 Jun 1996 15:43:46 -0700 Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id af24948; 26 Jun 96 21:45 GMT Received: from jraynard.demon.co.uk ([158.152.42.77]) by relay-3.mail.demon.net id ab14581; 26 Jun 96 22:12 +0100 Received: (from fqueries@localhost) by jraynard.demon.co.uk (8.6.12/8.6.12) id SAA01563; Wed, 26 Jun 1996 18:05:32 GMT Date: Wed, 26 Jun 1996 18:05:32 GMT Message-Id: <199606261805.SAA01563@jraynard.demon.co.uk> From: James Raynard To: jrclark@netview.net CC: questions@freebsd.org In-reply-to: <2.2.32.19960626085918.0091d080@netview.net> (message from John Clark on Wed, 26 Jun 1996 08:57:17 -0500 (EST)) Subject: Re: system reports to root Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I used to really enjoy getting those system email reports to the root > account. For some reason they have stopped coming. Would anyone have any > idea why, what I did? I am not very good with cron so it is hard to say. The commands need to have their output piped into sendmail:- 0 2 * * * root /etc/daily 2>&1 | sendmail root 30 3 * * 6 root /etc/weekly 2>&1 | sendmail root 30 5 1 * * root /etc/monthly 2>&1 | sendmail root > While on this subject, should I enable this code? > > #find / ! -fstype local -a -prune -o \ > # \( -name '[#,]*' -o -name '.#*' -o -name a.out -o -name *.core \ > # -o -name '*.CKP' -o -name '.emacs_[0-9]*' \) \ > # -a -atime +3 -exec rm -f -- {} \; > > I am not at all sure what all it wants to prune! That sounds like a very good reason not to enable it! 8-) It's basically intended to clear out temporary files left behind by Emacs if it wasn't closed cleanly, core files and various other junk that tends to accumulate on disks. However, enabling it can open a security hole, which is why it's commented out by default. I believe 2.2-current's version of this file has a note before this code that explains this. I'd recommend leaving it well alone unless you know exactly what you're doing. -- James Raynard, Edinburgh, Scotland james@jraynard.demon.co.uk