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
Auto sending text files from SCO box to a PC via serial cable gbrowne Shell Programming and Scripting 0 03-20-2008 09:14 AM
Sending Attachments Through mailx vrk1219 HP-UX 4 08-27-2007 08:06 AM
sending attachments via unix Abhishek Ghose UNIX for Advanced & Expert Users 6 09-30-2005 01:49 PM
sending files as attachments SmartJuniorUnix How do I send email? 9 04-13-2001 04:34 AM
sending files as attachments SmartJuniorUnix UNIX for Dummies Questions & Answers 9 04-13-2001 04:34 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-07-2007
Registered User
 

Join Date: Aug 2005
Posts: 18
Sending text files as attachments

Hi,

I have used the following command to send a text file "archiver.log" as attachment.

(cat mail.log; uuencode archiver.log archiver.log; ) | mailx -s "Failure" asd@a.com :

But in the mail i am not getting new lines in the text file.New Lines are getting replaced with some weird characters.

Pls help.

Thanks,
Radhika.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-07-2007
Registered User
 

Join Date: Feb 2005
Location: Canada
Posts: 131
Search this forum and look at this :

Attaching files in Mail with HP Unix
Reply With Quote
  #3 (permalink)  
Old 06-07-2007
Registered User
 

Join Date: Aug 2005
Posts: 18
Thanks...

Actually changing archiever.log to archiver.doc worked...

(cat mail.log; uuencode archiver.log archiver.doc; ) | mailx -s "Failure" asd@a.com :
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 03:17 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