From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 20:07:35 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 0A11116A4CE for ; Wed, 31 Dec 2003 20:07:35 -0800 (PST) Received: from dns13.mail.yahoo.co.jp (dns13.mail.yahoo.co.jp [210.81.151.173]) by mx1.FreeBSD.org (Postfix) with SMTP id D0C7E43D45 for ; Wed, 31 Dec 2003 20:07:32 -0800 (PST) (envelope-from ayakokiko@ybb.ne.jp) Received: from unknown (HELO gorgon.near.this) (219.11.234.11 with poptime) by dns13.mail.yahoo.co.jp with SMTP; 1 Jan 2004 04:07:31 -0000 X-Apparently-From: Received: from ghost.near.this (ghost.near.this [10.0.3.9]) by gorgon.near.this (Postfix) with ESMTP id 99A457F81; Thu, 1 Jan 2004 13:07:26 +0900 (JST) Received: by ghost.near.this (Postfix, from userid 100) id 4210719694; Thu, 1 Jan 2004 13:07:24 +0900 (JST) Date: Thu, 1 Jan 2004 13:07:23 +0900 From: horio shoichi To: "Chad Albert" In-Reply-To: <433CEE75B1339547BBB373B340665384116B16@hfmail01.sgf.healthcarefirst.med> References: <433CEE75B1339547BBB373B340665384116B16@hfmail01.sgf.healthcarefirst.med> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20040101.040724.818fa8349a443434.10.0.3.9@bugsgrief.net> 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 04:07:35 -0000 On Wed, 31 Dec 2003 15:46:33 -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? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Depends on how you invoke mail, but one method: cat file1 file2 ... filen|mail -s "a lot of files" $USER horio shoichi