From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 17:33:21 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EF6516A4CE for ; Wed, 31 Dec 2003 17:33:21 -0800 (PST) Received: from madras.dyndns.org (dsl-137.241.240.220.dsl.comindico.com.au [220.240.241.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B36A43D2F for ; Wed, 31 Dec 2003 17:33:16 -0800 (PST) (envelope-from ggop@madras.dyndns.org) Received: from madras.dyndns.org (localhost [127.0.0.1]) by madras.dyndns.org (8.12.9p1/8.12.9) with ESMTP id i011W8RI079788; Thu, 1 Jan 2004 12:32:08 +1100 (EST) (envelope-from ggop@madras.dyndns.org) Received: (from ggop@localhost) by madras.dyndns.org (8.12.9p1/8.12.9/Submit) id i011W76d079787; Thu, 1 Jan 2004 12:32:07 +1100 (EST) Date: Thu, 1 Jan 2004 12:32:07 +1100 From: Gautam Gopalakrishnan To: Chad Albert Message-ID: <20040101013207.GA79770@madras.dyndns.org> References: <433CEE75B1339547BBB373B340665384116B16@hfmail01.sgf.healthcarefirst.med> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <433CEE75B1339547BBB373B340665384116B16@hfmail01.sgf.healthcarefirst.med> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jan 2004 01:33:21 -0000 On Wed, Dec 31, 2003 at 03:46:33PM -0600, Chad Albert wrote: > I am writing a script that mails me when certain events occur. I am > using mail(1) to notify me by email when some things happen. I have > read the man page and I don't see a way to attach a file, does anyone > know how to use mail(1) to attach a file? I don't know about mail, but you can do it easily with mutt. cat textfile | mutt -s "subject" -a attachment address hth Gautam