[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sending mail from bash scripts



On Thu, Dec 13, 2001 at 02:58:51PM -0800, nate wrote:
> <quote who="Matthew Daubenspeck">
> > Is there any easy way to send a message complete with subject and
> > body from  a bash script? I want to run something simple from cron,
> > but can't seem to  get the format down just right...
> >
> 
> what about
> echo "my message" | mail -s "my subject" my@email.address
> 
> many of my bash scripts output log stuff to a dedicated text
> file then i email it via cat:
> cat filename | mail -s "my subject" my@email.address
> 
> is this what your asking??
For more features like attachments use mutt.

sven

-- 
Lamer! :)\nLokaler Admin mit enormen Rechten[tm]
[Christian Schneider und Jens Himmelrath in alt.hacker.org-gcf]
http://www.linux-secure.de http://www.linuxboard.de
http://www.bluephod.net http://www.disconow.de



Reply to: