Uuencode

Hi All,

I have a queryin the uuencode option. Actually i need to attach two files in a single mail.
I am aware of attaching a single file using the command below.

(echo " The first file ";uuencode file1 file1) | mailx -s " The files " venkidhadha@in.com

However i am not sure what would be the command for attaching mulitle of two files.

This should work I guess.....

(echo " The first file ";uuencode file1 file1; echo " The sec file ";uuencode file2 file2) | mailx -s " The files " venkidhadha@in.com

try it....

Who me?? If yes, right now I cant as sendmail is not configured at this moment

My $.02, you cannot.
Either tar/zip/whatever to create an archive and uuencode a SINGLER archive and send it out.
OR
Create a MIME-compliant email with the REAL attachments. There're plenty of useful links and FAQs on this forum for it.

Well I used the following in a script far long back on ksh; if I remember

{
unix2dos -437 file1 | uuencode file1 file1;
unix2dos -437 file2 | uuencode file2 file2;
} | mailx -s "Files" abc@yahoo.com

I fear if this doesn't work... Kindly confirm

no, it does not - at least on FreeBSD