uuencode(1c)uuencode(1c)Name
uuencode, uudecode - encode/decode a binary file for transmission via mail
Syntax
uuencode [file] remotedest | mail sys1!sys2!..!decode
uudecode [file]
Description
The and commands are used to send a binary file by uucp (or other) mail. This combination can be used over indirect mail links even when
is not available.
The command takes the named source file (default standard input) and produces an encoded version on the standard output. The encoding uses
only printing ASCII characters, and includes the mode of the file and the remotedest for recreation on the remote system.
The command reads an encoded file, strips off any leading and trailing lines added by mailers, and recreates the original file with the
specified mode and name.
The intent is that all mail to the user ``decode'' should be filtered through the program. This way the file is created automatically
without human intervention. This is possible on the uucp network by either using or by making be a link to instead of In each case, an
alias must be created in a master file to get the automatic invocation of
If these facilities are not available, the file can be sent to a user on the remote machine who can uudecode it manually.
The encode file has an ordinary text form and can be edited by any text editor to change the mode or remote name.
Restrictions
The file is expanded by 35% (3 bytes become 4 plus control information) causing it to take longer to transmit.
The user on the remote system who is invoking (often must have write permission on the specified file.
See Alsomail(1), uucp(1c), uusend(1c), uux(1c), uuencode(5)uuencode(1c)
Check Out this Related Man Page
UUENCODE(1C)UUENCODE(1C)NAME
uuencode, uudecode - encode/decode a binary file for transmission via mail
SYNOPSIS
uuencode [ source ] remotedest | mail sys1!sys2!..!decode
uudecode [ file ]
DESCRIPTION
Uuencode and uudecode are used to send a binary file via uucp (or other) mail. This combination can be used over indirect mail links even
when uusend(1C) is not available.
Uuencode takes the named source file (default standard input) and produces an encoded version on the standard output. The encoding uses
only printing ASCII characters, and includes the mode of the file and the remotedest for recreation on the remote system.
Uudecode reads an encoded file, strips off any leading and trailing lines added by mailers, and recreates the original file with the speci-
fied mode and name.
The intent is that all mail to the user ``decode'' should be filtered through the uudecode program. This way the file is created automati-
cally without human intervention. This is possible on the uucp network by either using sendmail or by making rmail be a link to Mail
instead of mail. In each case, an alias must be created in a master file to get the automatic invocation of uudecode.
If these facilities are not available, the file can be sent to a user on the remote machine who can uudecode it manually.
The encode file has an ordinary text form and can be edited by any text editor to change the mode or remote name.
SEE ALSO
atob(n), uusend(1C), uucp(1C), uux(1C), mail(1), uuencode(5)BUGS
The file is expanded by 35% (3 bytes become 4 plus control information) causing it to take longer to transmit.
The user on the remote system who is invoking uudecode (often uucp) must have write permission on the specified file.
4th Berkeley Distribution April 24, 1986 UUENCODE(1C)
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)
Hi,
I am trying to get an email sent out by the unix ( aix ) system that has a .gz file attached to it.
I can get the attachment, but it's not working when being looked at from outlook.
I think there is a problem because of the way I am doing it, and the fact that it's binary.
I am trying to... (15 Replies)
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)
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)
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)
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)
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)
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)
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)
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)
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)
I tried the below command
uuencode data.txt | mailx -s “Test Mail” “mrp@xyz.com”
But I get the below error
ksh: uuencode: not found.
Null Message body; hope that' ok
which clearly tell that uuencode utility is not found.
Is there any other way to send attachments with mail through... (7 Replies)
Hi Experts,
i need your help here
:confused:
Need to send a report thru mail using unix shell script(AIX). can you help me to do this? . i tried "uuencode" with CSV format, but while reading report all values are in single column. i need each column values in separate cell.
Thanks in... (9 Replies)
How to Send a mail with multiple attachment also differenet extension using uuencode in AIX.
Can you please help me.
---------------------------------------------------------
I have below code. But attachment not been attached.
(cat /aceapp/QATD011R4/ace.ofac/testofac/results/;uuencode... (9 Replies)
Hi,
I was trying to write a shell script which reads text file and sends mail in html format along with tables. Hope i have completed 1st part , but while sending mail i was trying to highlight some rows in the table based on the grep outcome. If the string contain **(194new.txt) , i am trying to... (8 Replies)