Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

Need help in uuencode command

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 03-16-2012
mac4rfree mac4rfree is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 6 July 2015, 11:34 AM EDT
Posts: 282
Thanks: 8
Thanked 0 Times in 0 Posts
Need help in uuencode command

Hi,

I am trying this command.


Code:
/usr/bin/uuencode test.xls error.xls | mail -s "Testing" <emailid>

Instead of me having an attachment, i am getting this.


Code:
begin 644 error.xls
M1&%T87-T86=E($5R<F]R<PI,2U`S.B!7:&5N(&-H96-K:6YG(&]P97)A=&]R
M.B!/;B!I;G!U="!D871A('-E="`Q.B!4:&4@=FEE=R!A9&%P=&5R(&AA<R!A
M(&)I;F1I;@IG(&9O<B!T:&4@;F]N+65X:7-T96YT(&1E<W1I;F%T:6]N(&9I
M96QD("),3T-!3%]-3T1%3"(N"@I$871A<W1A9V4@17)R;W)S"DQ+4#,Z(%=H
M96X@8VAE8VMI;F<@;W!E<F%T;W(Z($]N(&EN<'5T(&1A=&$@<V5T(#$Z(%1H
M92!V:65W(&%D87!T97(@:&%S(&$@8FEN9&EN"F<@9F]R('1H92!N;VXM97AI
M<W1E;G0@<V]U<F-E(&9I96QD(")"55-)3D534U]53DE47TY!344B+@H*1&%T
M87-T86=E($5R<F]R<PI,2U`S.B!7:&5N(&-H96-K:6YG(&]P97)A=&]R.B!/
M;B!I;G!U="!D871A('-E="`Q.B!4:&4@=FEE=R!A9&%P=&5R(&AA<R!A(&)I

Can somebody help me out.

Cheers!!!!!!

Last edited by mac4rfree; 03-16-2012 at 09:18 AM..
Sponsored Links
    #2  
Old Unix and Linux 03-16-2012
michaelrozar17's Unix or Linux Image
michaelrozar17 michaelrozar17 is offline
Registered User
 
Join Date: Jul 2010
Last Activity: 23 July 2015, 8:19 AM EDT
Location: IN
Posts: 892
Thanks: 14
Thanked 182 Times in 173 Posts
I guess this kind of output is something related to OS. What OS your in..? Try mailx's -a option to send attachment if available
The Following User Says Thank You to michaelrozar17 For This Useful Post:
mac4rfree (03-16-2012)
Sponsored Links
    #3  
Old Unix and Linux 03-16-2012
mac4rfree mac4rfree is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 6 July 2015, 11:34 AM EDT
Posts: 282
Thanks: 8
Thanked 0 Times in 0 Posts
@michaelrozar17,, that solved the issue.. Linux
    #4  
Old Unix and Linux 03-16-2012
Corona688 Corona688 is online now Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 28 July 2015, 1:25 PM EDT
Location: Saskatchewan
Posts: 20,771
Thanks: 901
Thanked 3,704 Times in 3,460 Posts
That looks like a valid uuencoded attachment really. Unfortunately email programs are beginning to forget about the older uuencode method and rely purely on MIME/base64, and just show that garbage when it happens.
Sponsored Links
    #5  
Old Unix and Linux 03-17-2012
mac4rfree mac4rfree is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 6 July 2015, 11:34 AM EDT
Posts: 282
Thanks: 8
Thanked 0 Times in 0 Posts
is there a way to attach multiple files..????
Sponsored Links
    #6  
Old Unix and Linux 03-17-2012
pandeesh's Unix or Linux Image
pandeesh pandeesh is offline
Registered User
 
Join Date: Jul 2011
Last Activity: 16 November 2014, 9:26 PM EST
Posts: 322
Thanks: 77
Thanked 12 Times in 12 Posts
Quote:
Originally Posted by mac4rfree View Post
@michaelrozar17,, that solved the issue.. Linux
What's your OS?
Sponsored Links
    #7  
Old Unix and Linux 03-18-2012
agama agama is offline Forum Advisor  
Always Learning
 
Join Date: Jul 2010
Last Activity: 7 April 2014, 3:02 PM EDT
Location: earth>US>UTC-5
Posts: 1,466
Thanks: 110
Thanked 508 Times in 487 Posts
Quote:
Originally Posted by mac4rfree View Post
is there a way to attach multiple files..????

Code:
mailx -a file1 -a file2 -s "subject" user@domain <message-file

Attaches both files to the mail with what was in message-file sent as the main body. Your mileage might vary, but it seems to work for me.
The Following User Says Thank You to agama For This Useful Post:
mac4rfree (03-18-2012)
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to send attachment using "sendmail" command or without uuencode command ns64110 AIX 1 03-08-2012 10:48 PM
How to send attachment using "sendmail" command or without uuencode command ns64110 Shell Programming and Scripting 3 03-01-2012 05:45 AM
Need resolution for the command "UUENCODE" vickramshetty Linux 7 04-06-2010 06:43 PM
uuencode command gives junk values Swapna173 UNIX for Dummies Questions & Answers 1 08-13-2008 04:34 AM
uuencode: command not found when sending mail in LINUX bsandeep_80 UNIX for Advanced & Expert Users 2 10-02-2007 08:48 AM



All times are GMT -4. The time now is 01:43 PM.