From owner-freebsd-questions Tue Jan 6 03:03:33 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA28552 for questions-outgoing; Tue, 6 Jan 1998 03:03:33 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from mailhost.shellnet.co.uk (mailhost.shellnet.co.uk [194.129.209.3]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id DAA28545 for ; Tue, 6 Jan 1998 03:03:29 -0800 (PST) (envelope-from ircadmin@shellnet.co.uk) Received: by mailhost.shellnet.co.uk with MERCUR-SMTP/POP3-Server (v2.10) for at Tue, 6 Jan 98 11:01:23 +0000 From: "Steven Fletcher (Shellnet IRC administrator)" To: "Kwoody" , "freebsd-questions" Subject: RE: mail log to myself Date: Tue, 6 Jan 1998 11:01:56 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Importance: Normal Message-Id: <98010611012341500@mailhost.shellnet.co.uk> Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > I have a little cron job that creates a log at night. How can one mail > said log to myself? Its not big only about 300 bytes. > > thanks! A simple way would be to do the following: cat | mail -s "Mail logs" As an example: cat /var/log/maillog | mail -s "Mail logs" kwoody@whatever.com Hope this helps.... Steven Fletcher Shellnet IRC admin