Command line mail program (mail)

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Tue May 11 17:39:48 UTC 2004


Am Di, den 11.05.2004 schrieb Gustavo Gouvea um 19:24:

> Is there a way to send files as attchments in the cmd line?

tar cjvf - /directory | uuencode directory.tar.bz2 | mail -s
"directory.bar.bz2 as attachment" recipient at domain.tld

uuencode is part of sharutils RPM.

A much more flexible way would be to use nail instead of mail:

http://nail.sourceforge.net/

Alexander


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2188.nptl
Sirendipity 19:35:14 up 14 days, 18:23, load average: 0.17, 0.15, 0.10 
                   [ Γνωθι σ'αυτον - gnothi seauton ]
             my life is a planetarium - and you are the stars
-------------- 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/20040511/35c9ebcc/attachment-0001.sig>


More information about the fedora-list mailing list