LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   uuencode how to mail attachments question (https://www.linuxquestions.org/questions/linux-software-2/uuencode-how-to-mail-attachments-question-716339/)

boyd98 04-02-2009 09:44 AM

uuencode how to mail attachments question
 
Can anyone tell me whats wrong with this line


uuencode $file2 | mailx -s "PROD Archive Backup ${date}" admin@host < $file1


So the goal is to mail file2 as an attachment and have a body of file1


Any help is greatly appreciated -


Thx,

Boyd

datopdog 04-02-2009 11:09 AM

The decode_pathname option is missing for the uuencode command.

boyd98 04-02-2009 03:00 PM

FYI here's what i found to work -

(cat $file2; uuencode $file1 <attachment_name>)| mailx -s "attached file with body msg"


All times are GMT -5. The time now is 01:38 AM.