The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
uuencode/mailx ocelot Shell Programming and Scripting 1 01-11-2008 04:28 AM
Question on mailx Felix2511 UNIX for Dummies Questions & Answers 3 05-23-2007 10:38 AM
question on uuencode vangalli Shell Programming and Scripting 5 07-26-2006 08:03 AM
mailx question greenguy5 UNIX for Dummies Questions & Answers 1 10-21-2005 12:07 AM
Mailx question Olivier UNIX for Advanced & Expert Users 3 08-26-2002 08:21 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-20-2005
Registered User
 

Join Date: Nov 2004
Posts: 41
mailx and uuencode question

I have this code below that works well. I also want to attach a logfile to the email. The first part of this code is the body of the email.

Code:
      echo "The size of $dirname/$f1 size = $f1size, and $dirname/$f2 = $f2size'" | mailx -s "Error with file sizes on $HOST Server" xyz@company.com
This is how I changed it, but I don't get the attachment. I need the body AND the attachment.

Code:
uuencode /opt/manu/srv/test.log test.log | echo "The size of $dirname/$f1 size = $f1size, and $dirname/$f2 = $f2size'" | mailx -s "Error with file sizes on $HOST Server" xyz@company.com
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-21-2005
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,243
See similar question: Sending email with text & attachment using mailx
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
mailx, mailx attachment

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0