From owner-freebsd-questions Mon Jan 5 22:43:35 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA07903 for questions-outgoing; Mon, 5 Jan 1998 22:43:35 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA07853 for ; Mon, 5 Jan 1998 22:42:36 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id RAA24043; Tue, 6 Jan 1998 17:12:25 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id RAA17716; Tue, 6 Jan 1998 17:12:25 +1030 (CST) (envelope-from grog) Message-ID: <19980106171224.13280@lemis.com> Date: Tue, 6 Jan 1998 17:12:24 +1030 From: Greg Lehey To: joelh@gnu.org Cc: freebsd-questions@freebsd.org Subject: Re: mail log to myself References: <199801060640.AAA04202@detlev.UUCP> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <199801060640.AAA04202@detlev.UUCP>; from Joel Ray Holveck on Tue, Jan 06, 1998 at 12:40:51AM -0600 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, Jan 06, 1998 at 12:40:51AM -0600, Joel Ray Holveck wrote: >>> 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.) Not a bad suggestion, but in fact I do this regularly (without a subject--shame on me), and it works fine. I think mail checks whether its stdin is a tty or not. Greg