The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
problem with uuencode rjsha1 Shell Programming and Scripting 9 04-29-2009 08:15 AM
uuencode and mailx problem zeekstern SUN Solaris 2 10-22-2008 11:52 AM
uuencode/mailx ocelot Shell Programming and Scripting 1 01-11-2008 08:28 AM
Problem with uuencode markms Shell Programming and Scripting 0 04-07-2006 12:13 PM
mailx and uuencode question ssmiths001 Shell Programming and Scripting 1 10-21-2005 05:43 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-26-2009
prash184u prash184u is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 23
mailx, uuencode problem

I've this command to run ...

Purpose : Send attachment file with e-mail body...
( E-mail body i read it from text file)

uuencode TEST_FILE.csv TEST_FILE.csv | cat /usr/local/bin/EMAIL_BODY.txt - | mailx -s "TEST Report" -c receiver1@mail.com receiver2@mail.com


Here is the problem .. this command works beautifully in my development server and i get e-mail with body and attachment.

However in Production server i get e-mail but no attachment ... and attachment contents are at the end of the body as garbage data...

Any idea why and what could be wrong here?

I really appriciate your help....
  #2 (permalink)  
Old 05-26-2009
funksen funksen is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 429
use

Code:
cat /usr/local/bin/EMAIL_BODY.txt  | mailx -s "TEST Report" -a TEST_FILE.csv -c receiver1@mail.com receiver2@mail.com
no need to use uuencode, since, as you describe, uuencode may work different on different plattforms / os releases
  #3 (permalink)  
Old 05-26-2009
prash184u prash184u is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 23
Thanks funksen for your reply ..

I've SunOS 5.10 and mailx does not have -a option.

But i found the problem .. the Body file has to have an empty line or space at the end of the file.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 10:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0