Need help in uuencode command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need help in uuencode command
# 1  
Old 03-16-2012
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..
# 2  
Old 03-16-2012
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
This User Gave Thanks to michaelrozar17 For This Post:
# 3  
Old 03-16-2012
@michaelrozar17,, that solved the issue.. Smilie
# 4  
Old 03-16-2012
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.
# 5  
Old 03-17-2012
is there a way to attach multiple files..????
# 6  
Old 03-18-2012
Quote:
Originally Posted by mac4rfree
@michaelrozar17,, that solved the issue.. Smilie
What's your OS?
# 7  
Old 03-18-2012
Quote:
Originally Posted by mac4rfree
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.
This User Gave Thanks to agama For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sending multiple files using uuencode command

Hi All, I want to send multiple CSV file using below code. In Result folder, we have multiple CSV files. However, I want to catch only Summary CSV files. I was trying using *, % with different combination. However, not able to do so. From below code, I could send only one file... (1 Reply)
Discussion started by: Swapnil Mawle
1 Replies

2. AIX

How to send attachment using "sendmail" command or without uuencode command

Hi Guys, I dont have uuencode, mutt, base64 command available on my aix machine there is any alternative way to send file as attachement in mail. (1 Reply)
Discussion started by: ns64110
1 Replies

3. Shell Programming and Scripting

How to send attachment using "sendmail" command or without uuencode command

Hi Guys, I dont have uuencode, mutt, base64 command available on my aix machine there is any alternative way to send file as attachement in mail. (3 Replies)
Discussion started by: ns64110
3 Replies

4. Shell Programming and Scripting

uuencode

HI, I want to zip it before sending to email. -- This works fine. uuencode gtsa_lmt_pb_rfs_daily.txt ukba_pb_rfs_daily.csv | mailx -s "ukba_pb_rfs_daily" test@abc.com --Below command is not working, it sends zunk file. uuencode gtsa_lmt_pb_rfs_daily.txt ukba_pb_rfs_daily.csv | gzip... (9 Replies)
Discussion started by: Sampath.Rachcha
9 Replies

5. Linux

Need resolution for the command "UUENCODE"

HI, I'm getting the following error while using "uuencode" -bash: uuencode: command not found I assume either the path is missing or it has not installed.. 1)Wat is the command to check the path for uuencode if it has been installed..? 2)How to install uuencode if its not... (7 Replies)
Discussion started by: vickramshetty
7 Replies

6. UNIX for Dummies Questions & Answers

uuencode

Ello I am having trouble getting uuencode to work. This is the command I am using. gzip -c /directory/path/file.txt | uuencode /directory/path/file.txt.gz | \ /usr/bin/mailx -s"file -$(date)" email@email.com < /directory/path/file.txt.gz However when I receive the email there is... (5 Replies)
Discussion started by: demention
5 Replies

7. Shell Programming and Scripting

Uuencode

Hi All, I have a queryin the uuencode option. Actually i need to attach two files in a single mail. I am aware of attaching a single file using the command below. (echo " The first file ";uuencode file1 file1) | mailx -s " The files " venkidhadha@in.com However i am not sure what... (6 Replies)
Discussion started by: venkidhadha
6 Replies

8. UNIX for Dummies Questions & Answers

uuencode command gives junk values

How to attach a file with the uuencode. It gives me some junk values in the mail body that i received. i used the following command uuencode Load_Measure_Summary.tsv | mailx -s "an HTML file" <<mailid>> Plz Help me Urgetnt (1 Reply)
Discussion started by: Swapna173
1 Replies

9. UNIX for Advanced & Expert Users

uuencode: command not found when sending mail in LINUX

HI all, When i run this command below i get this error: (cat /root/body.txt ; uuencode -m Summaryfile.zip) | mailx -s "completed" sandeep@help.com bash: uuencode: command not found Does anyone know why this is happening? Or is there any alternative to send mail with an... (2 Replies)
Discussion started by: bsandeep_80
2 Replies

10. Shell Programming and Scripting

uuencode

hi all, I dont know of this is a duplicate thread, but the thread i started a while ago wasnot posted still. ok my question is i have a shell script named "mail_editck.sh". i have to include some reports in it so that i can get the email when they are done. the syntax goes like this. ... (2 Replies)
Discussion started by: tejasingaraju17
2 Replies
Login or Register to Ask a Question