Emailing a file attachment w/ cron

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Wed Jun 2 17:03:40 UTC 2004


Am Mi, den 02.06.2004 schrieb Paul Dubinsky um 15:00:

> I'm using FC1 and I need to email a log file with cron. I'm currently using 
> send but send takes the logfile and makes it the body of the email. I want 
> to send it as an attachment. I've Man'ed mail, send and post but none of 
> these explicitly handle attachments.

> TIA,
> Paul

cat logfile | uuencode logfile | mail -s "this is a logfile attached" recipient at domain.tld

uuencode is part of the sharutils package.

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) on Athlon CPU kernel 2.6.5-1.358 
Serendipity 19:00:32 up 19:18, 8 users, 0.12, 0.09, 0.02 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040602/5215bdf4/attachment-0001.sig>


More information about the fedora-list mailing list