LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-02-2009, 09:44 AM   #1
boyd98
Member
 
Registered: Oct 2003
Posts: 156

Rep: Reputation: 15
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
 
Old 04-02-2009, 11:09 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
The decode_pathname option is missing for the uuencode command.
 
Old 04-02-2009, 03:00 PM   #3
boyd98
Member
 
Registered: Oct 2003
Posts: 156

Original Poster
Rep: Reputation: 15
FYI here's what i found to work -

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have Logwatch mail attachments stefaandk Linux - Newbie 4 09-05-2013 11:23 AM
e-mail attachments using perl abhikul1007 Programming 1 03-23-2007 03:19 AM
E-Mail attachments nolinuxnollife Linux - Security 1 03-20-2006 01:20 PM
problems with mail attachments permissions ZaphyR Linux - Software 1 05-19-2005 03:32 PM
Mail and attachments wvrhlu Linux - Software 2 04-02-2003 10:06 AM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration