Subject: Re: mailing notifications automatically
To: None <tech-security@NetBSD.org>
From: Martin Peikert <news-list.netbsd.tech-security@innominate.de>
List: tech-security
Date: 09/06/2000 14:40:36
by mail.netbsd.org with SMTP; 6 Sep 2000 14:40:38 -0000
by hermes.mixx.net (Postfix) with ESMTP id C437BF80A
for <tech-security@NetBSD.org>; Wed, 6 Sep 2000 16:40:36 +0200 (CEST)
id A59DE2CA6D; Wed, 6 Sep 2000 16:40:36 +0200 (CEST)
From: Martin Peikert <news-list.netbsd.tech-security@innominate.de>
Reply-To: Martin Peikert <martin.peikert@innominate.de>
Subject: Re: mailing notifications automatically
Date: 6 Sep 2000 14:40:36 GMT
Organization: innominate AG
Lines: 18
Distribution: local
Message-ID: <news2mail-8p5l14$en7$1@mate.bln.innominate.de>
References: <E10D54F27C6AD11196EF00600812C5CF067E9D@CNENT>
User-Agent: tin/pre-1.4-19990805 ("Preacher Man") (UNIX) (Linux/2.2.14 (i586))
To: tech-security@NetBSD.org
Tony Hernadez <tony@cne-inc.com> wrote:
> I'm trying to run a mail command that will email me a message
> automatically... I'm not sure how to use the mail command without manually
> typing in the message and hitting CTRL+D. anyone done something like this ?
Hi Tony,
cat the_file_you_want_to_mail | mail user@host -s "your subject"
where the body will be the_file_you_want_to_mail or
echo | mail user@host -s "your subject"
with an empty body should meet your needs.
Bye, Martin
--
martin.peikert@innominate.de
system engineer innominate AG
clustering & security networking people
tel: +49.30.308806-0 fax: -77 http://innominate.de