Sponsored Content
Top Forums Shell Programming and Scripting Need help in uuencode command Post 302608132 by mac4rfree on Friday 16th of March 2012 09:11:28 AM
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..
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
UUENCODE(1)						    BSD General Commands Manual 					       UUENCODE(1)

NAME
uuencode, uudecode -- encode/decode a binary file SYNOPSIS
uuencode [-m] [inputfile] outputname uudecode [-m | -p] [encoded-file ...] DESCRIPTION
uuencode and uudecode are used to transmit binary files over transmission mediums that do not support other than simple ASCII data. The following options are available: -m Use base64 encoding. uuencode reads inputfile (or by default the standard input) and writes an encoded version to the standard output. The encoding uses only printing ASCII characters and includes the mode of the file and the operand outputname for use by uudecode. uudecode transforms uuencoded files (or by default, the standard input) into the original form. The resulting file is named outputname as recorded in the encoded file, and will have the mode of the original file except that setuid and execute bits are not retained; if the -p option is specified, the data will be written to the standard output instead. uudecode ignores any leading and trailing lines. EXIT STATUS
The uudecode and uuencode utilities exits 0 on success, and >0 if an error occurs. EXAMPLES
The following example packages up a source tree, compresses it, uuencodes it and mails it to a user on another system. tar czf - src_tree | uuencode src_tree.tgz | mail user@example.com On the other system, if the user saves the mail to the file temp, the following example creates the file src_tree.tgz and extracts it to make a copy of the original tree. uudecode temp tar xzf src_tree.tgz SEE ALSO
gzip(1), mail(1), tar(1), uuencode(5) STANDARDS
The uudecode and uuencode utilities conform to IEEE Std 1003.2-1992 (``POSIX.2''). HISTORY
The uudecode and uuencode utilities appeared in 4.0BSD. BUGS
The encoded form of the file is expanded by 35% (3 bytes become 4 plus control information). BSD
November 30, 2008 BSD
All times are GMT -4. The time now is 03:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy