Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

uue(1) [minix man page]

UUE(1)							      General Commands Manual							    UUE(1)

NAME
uue, uuencode - encode a binary file to ASCII (e.g., for mailing) SYNOPSIS
uue [-n] file [-] OPTIONS
-n How many lines to put in each file EXAMPLES
uue file # Encode file to file.uue uue file - >x # Encode file and write on stdout uue -800 file # Output on file.uaa, file.uab etc. DESCRIPTION
Uuencode is a famous program that converts an arbitrary (usually binary) file to an encoding using only 64 ASCII characters. Uudecode con- verts it back to the original file. The uue and uud programs are the MINIX versions of these programs, and are compatible with the UNIX ones. The files produced can even be sent successfully over BITNET, which is notorious for mangling files. It is possible to have uue automatically split the encoded file up into small chunks. The output files then get the suffixes .uaa, .uab, etc., instead of .uue. When uud is given file.uaa to decode, it automatically includes the subsequent pieces. The encoding takes 3 bytes (24 bits) from the input file and renders it as 4 bytes in the output file. SEE ALSO
btoa(1), uud(1). UUE(1)

Check Out this Related Man Page

uuencode(1)						      General Commands Manual						       uuencode(1)

NAME
uuencode, uudecode - encode a binary file, or decode its representation SYNOPSIS
uuencode [-m] [ file ] name uudecode [-o outfile] [ file ]... DESCRIPTION
Uuencode and uudecode are used to transmit binary files over transmission mediums that do not support other than simple ASCII data. Uuencode reads file (or by default the standard input) and writes an encoded version to the standard output. The encoding uses only print- ing ASCII characters and includes the mode of the file and the operand name for use by uudecode. If name is /dev/stdout the result will be written to standard output. By default the standard UU encoding format will be used. If the option -m is given on the command line base64 encoding is used instead. Note: uuencode uses buffered input and assumes that it is not hand typed from a tty. The consequence is that at a tty, you may need to hit Ctl-D several times to terminate input. Uudecode transforms uuencoded files (or by default, the standard input) into the original form. The resulting file is named name (or out- file if the -o option is given) and will have the mode of the original file except that setuid and execute bits are not retained. If out- file or name is /dev/stdout the result will be written to standard output. Uudecode ignores any leading and trailing lines. The program can automatically decide which of the both supported encoding schemes are used. EXAMPLES
The following example packages up a source tree, compresses it, uuencodes it and mails it to a user on another system. When uudecode is run on the target system, the file ``src_tree.tar.Z'' will be created which may then be uncompressed and extracted into the original tree. tar cf - src_tree | compress | uuencode src_tree.tar.Z | mail sys1!sys2!user SEE ALSO
compress(1), mail(1), uucp(1), uuencode(5) STANDARDS
This implementation is compliant with P1003.2b/D11. BUGS
If more than one file is given to uudecode and the -o option is given or more than one name in the encoded files are the same the result is probably not what is expected. The encoded form of the file is expanded by 37% for UU encoding and by 35% for base64 encoding (3 bytes become 4 plus control information). REPORTING BUGS
Report bugs to <bug-gnu-utils@gnu.org>. Please put sharutils or uuencode in the subject line. It helps to spot the message. HISTORY
The uuencode command appeared in BSD 4.0. uuencode(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Uuencode problem in mail attachment

I have a unix script that compresses a .txt file using gzip command and then sends it by mail using uuencode. This has been working fine for some time, but lately I've been experiencing some problems, as when I open the mail generated, I don't see the attachment, but instead I get a large amount... (8 Replies)
Discussion started by: mvalonso
8 Replies

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

3. Shell Programming and Scripting

problem with uuencode

Hi everyone, I'm emailing a spool file to a person using mailx. I'm using uuencode to attach the file to the email. but am getting this error uuencode: ISO8859-15 to 646 conversion: Invalid argument Any ideas as to why. The code is below sqlplus -s user/password@database <<EOF set... (9 Replies)
Discussion started by: rjsha1
9 Replies

4. Shell Programming and Scripting

Not able to send multiple attachments using uuencode and mailx

Hi, I am seeing some junk characters when I attach the second file, given below is the logic I used. Please help me resolving the issue. ( uuencode file1.txt file1.txt.lst && uuencode file2.txt file2.txt.lst ) > attachment.txt cat body.txt attachment.txt > combinemail.txt mailx -m... (7 Replies)
Discussion started by: prasperl
7 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. 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

7. Shell Programming and Scripting

uuencode sends output all in 1 line

Hi, I need to send a email as a txt file and i used the commands, Code: (echo `echo $EMAIL_MSG` ; uuencode "file.txt" "file.txt" ) | mailx -s "$EMAIL_SUBJECT" "$EMAIL_ID" I received email with a attachment with all data but i get all of them in one row. For example: If file.txt... (7 Replies)
Discussion started by: skcvasanth
7 Replies

8. Shell Programming and Scripting

Send files as an attachment without uuencode

Hi All, Is there anyway we can send files as an attachment? I tried running uuencode but its giving an error as below: $ uuencode Z1.txt Z1.txt |mailx -s "hi" abc@abc.com ksh: uuencode: not found. Null message body; hope that's ok When i gave which command then it says there is no... (18 Replies)
Discussion started by: HemaV
18 Replies

9. UNIX for Advanced & Expert Users

uuencode problem

Hi, I am making a shell script on HP-UX that will do some Oracle db query and fetch data. Then after formatting the output files (there are two files) in a csv format, I want to send them as email attachments. Unfortunately the email contains garbage. I could not find solution to the problem... (13 Replies)
Discussion started by: asutoshch
13 Replies

10. Shell Programming and Scripting

Problem with uuencode

Hi, I am trying to send an attachment through UNIX to the mail box. But along with the attachments I am also receiving junk data as a text file, Suppose "Hi" is the subject of the mailx command then along with the attachment I am getting Hi.txt also. Below are the commands which I used : - ... (15 Replies)
Discussion started by: Alex_Smith
15 Replies

11. Shell Programming and Scripting

Need help in uuencode command

Hi, I am trying this command. /usr/bin/uuencode test.xls error.xls | mail -s "Testing" <emailid> Instead of me having an attachment, i am getting this. begin 644 error.xls M1&%T87-T86=E($5R<F]R<PI,2U`S.B!7:&5N(&-H96-K:6YG(&]P97)A=&]R... (7 Replies)
Discussion started by: mac4rfree
7 Replies

12. AIX

Need to send attachment in Mail without using uuencode via script in AIX6.1

Dear All, Would some one help me with this to send a file as attachment in a mail using a script without uuencode... I am working on AIX 6.1, the thing is I dont have uuencode available... Is there any other alternate possible way to send file attachment with the mail without using uuencode... (11 Replies)
Discussion started by: msmadhan11
11 Replies

13. Red Hat

uuencode not found !

When I do this: $ whereis uuencode uuencode: /usr/share/man/man1p/uuencode.1p.gz Does that mean it is not installed? Becuase when I use this command it says it is not found !!! Anythought what needs to be done? OS=RedHat 5.8 Linux. (8 Replies)
Discussion started by: mrn6430
8 Replies

14. Shell Programming and Scripting

Help with mailx, uuencode

Here's my code - FILES="file1 file2 file3" for File in ${FILES}; do uuencode "${File}" "$(basename ${File}" done | mailx email@id.com This works as expected, meaning emailing the files as attachments but with null body. Now what I want is a way to have the Body list the files in order e.g. ... (8 Replies)
Discussion started by: nexional
8 Replies

15. Shell Programming and Scripting

Uuencode a html file with word wrap

Hi, I have a file myfile.txt as seen below. Name Age Days --------- ------- -------- ABC 5 23 DEF 20 120 When i cat this file into a html file and send mail, I could see the file is opened as seen below. Name Age Days --------- ... (7 Replies)
Discussion started by: jayadanabalan
7 Replies