From owner-freebsd-questions Thu Nov 29 0:43:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hawk.prod.itd.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id D9F4D37B429 for ; Thu, 29 Nov 2001 00:43:00 -0800 (PST) Received: from dialup-209.247.138.241.dial1.sanjose1.level3.net ([209.247.138.241] helo=blossom.cjclark.org) by hawk.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 169Ml5-0005LP-00; Thu, 29 Nov 2001 00:41:27 -0800 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.3) id fAT8fOG07266; Thu, 29 Nov 2001 00:41:24 -0800 (PST) (envelope-from cjc) Date: Thu, 29 Nov 2001 00:41:22 -0800 From: "Crist J. Clark" To: brain_damaged Cc: freebsd-questions , imgate Subject: Re: using MAIL command to send messages and copies of logs. Message-ID: <20011129004122.P3985@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <200111281422.AA309461118@florida-wireless.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111281422.AA309461118@florida-wireless.com>; from brain_damaged@florida-wireless.com on Wed, Nov 28, 2001 at 02:22:35PM -0500 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Nov 28, 2001 at 02:22:35PM -0500, brain_damaged wrote: > Hello FreeBSDers, > I was looking at the mail command to mail some logs > or info out. > Reading the man pages is somewhat informative but > lacks so my guessing is it goes something like this > ka sa ra sa ra life is ooops :-) > i mean > mail -s "subject if spaces are used" user@domain.com > > if i want to add a second or third receiptent > > mails -s "subject matter" user@domain.com -c user2@domain.com > if i put a third do i use a ; or a ' or a space to seperate ? > > to read in a log file to send to abuse@noc.net > > mails -s "hack attempts" abuse@domain.net -c me@mydomain.com ~r /var/log/messages > > am i clos on any of them. $ mail -s "hack attempts" -c me@mydomain.com abuse1@domain1.net abuse2@domain2.net abuse3@domain3.net < /var/log/messages Will send the contents of /var/log/messages to buse1@domain1.net, abuse2@domain2.net, and abuse3@domain3.net, and send a CC to me@mydomain.com. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message