From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,56501d97ed8b5a1b X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.germany.com!multikabel.net!feed20.multikabel.net!news2.euro.net!transit.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Date: Tue, 29 Aug 2006 20:59:38 +0200 From: Eric de Redelijkheid User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Send email References: <1156867322.513428.147290@h48g2000cwc.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <44f48e99$0$4530$e4fe514c@news.xs4all.nl> NNTP-Posting-Host: 80.126.41.245 X-Trace: 1156877977 news.xs4all.nl 4530 [::ffff:80.126.41.245]:1333 X-Complaints-To: abuse@xs4all.nl Xref: g2news2.google.com comp.unix.tru64:516 Anno Domini 29-8-2006 20:52, Piotr Hosowicz sprak aldus: > sergio_asg wrote: >> Hi everybody! >> >> I want to know if it's posible to send a plaintext file in an email >> using scripting. For instance, my vdump job generates a log and I want >> that file can be check by my operator in his mail account. > > echo "Mail body" | mail -s 'Subject' recipient@somewhere.example.com > > ? > uuencode vdump.log vdump.log|mailx -s 'Vdump report' operator@anywhere.com This sends the log as an attachement. Otherwise just use: cat vdump.log|mailx -s ....etc.