Date: Thu, 29 Nov 2001 00:41:22 -0800 From: "Crist J. Clark" <cristjc@earthlink.net> To: brain_damaged <brain_damaged@florida-wireless.com> Cc: freebsd-questions <freebsd-questions@FreeBSD.ORG>, imgate <IMGate@ns2.MEIway.com> Subject: Re: using MAIL command to send messages and copies of logs. Message-ID: <20011129004122.P3985@blossom.cjclark.org> In-Reply-To: <200111281422.AA309461118@florida-wireless.com>; from brain_damaged@florida-wireless.com on Wed, Nov 28, 2001 at 02:22:35PM -0500 References: <200111281422.AA309461118@florida-wireless.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011129004122.P3985>