Need help in uuencode command | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


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

Need help in uuencode command

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-16-2012
mac4rfree mac4rfree is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 22 August 2014, 12:43 AM EDT
Posts: 281
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 10:18 AM..
Sponsored Links
    #2  
Old 03-16-2012
michaelrozar17's Avatar
michaelrozar17 michaelrozar17 is offline
Registered User
 
Join Date: Jul 2010
Last Activity: 24 November 2014, 9:59 PM EST
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 03-16-2012
mac4rfree mac4rfree is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 22 August 2014, 12:43 AM EDT
Posts: 281
Thanks: 8
Thanked 0 Times in 0 Posts
@michaelrozar17,, that solved the issue..
    #4  
Old 03-16-2012
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 25 November 2014, 5:56 PM EST
Location: Saskatchewan
Posts: 19,936
Thanks: 847
Thanked 3,418 Times in 3,203 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 03-17-2012
mac4rfree mac4rfree is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 22 August 2014, 12:43 AM EDT
Posts: 281
Thanks: 8
Thanked 0 Times in 0 Posts
is there a way to attach multiple files..????
Sponsored Links
    #6  
Old 03-18-2012
pandeesh's Avatar
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..
What's your OS?
Sponsored Links
    #7  
Old 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 506 Times in 485 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 Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:48 PM
How to send attachment using "sendmail" command or without uuencode command ns64110 Shell Programming and Scripting 3 03-01-2012 06:45 AM
Need resolution for the command "UUENCODE" vickramshetty Linux 7 04-06-2010 07:43 PM
uuencode command gives junk values Swapna173 UNIX for Dummies Questions & Answers 1 08-13-2008 05:34 AM
uuencode: command not found when sending mail in LINUX bsandeep_80 UNIX for Advanced & Expert Users 2 10-02-2007 09:48 AM



All times are GMT -4. The time now is 02:22 AM.