Re: Command line mail program (mail)

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

 



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@xxxxxxxxxx

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

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux