From owner-freebsd-questions Mon Jan 5 22:41:06 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA07738 for questions-outgoing; Mon, 5 Jan 1998 22:41:06 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from wcc.wcc.net (wcc.wcc.net [208.6.232.10]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA07732 for ; Mon, 5 Jan 1998 22:40:59 -0800 (PST) (envelope-from detlev!joelh@wcc.wcc.net) Received: from detlev.UUCP (ppp124.wcc.net [208.6.232.124]) by wcc.wcc.net (8.8.7/8.8.7) with ESMTP id AAA06165; Tue, 6 Jan 1998 00:37:44 -0600 (CST) Received: (from joelh@localhost) by detlev.UUCP (8.8.8/8.8.7) id AAA04202; Tue, 6 Jan 1998 00:40:51 -0600 (CST) (envelope-from joelh) Date: Tue, 6 Jan 1998 00:40:51 -0600 (CST) Message-Id: <199801060640.AAA04202@detlev.UUCP> To: Greg Lehey Subject: Re: mail log to myself From: Joel Ray Holveck Reply-to: joelh@gnu.org CC: freebsd-questions@freebsd.org 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. > mail kwoody < log Perhaps a subject parameter would be wise, to prevent mail from prompting for one. (Recall that the default .mailrc contains 'set ask' in it.) mail -s "Little cron job log" < log Cheers, joelh -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped