NAME [Toc] [Back]
uuencode, uudecode - encode/decode a binary file for transmission by
SYNOPSIS [Toc] [Back]
uuencode [source] remotedest
DESCRIPTION [Toc] [Back]
uuencode and uudecode can be used to send a binary file to another
machine by means of such services as elm(1), mailx(1), or uucp(1) (see
elm(1), mailx(1), and uucp(1)).
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, includes the original mode of the
input file, and preserves the value of the remotedest argument which
is the intended name for the file when it is restored later on the
uudecode reads an encoded file, ignores any leading and trailing lines
added by mailers, and recreates the original file with the specified
mode and name.
The encoded file is an ordinary ASCII text file and can be edited with
any text editor to change the mode or remote name.
EXAMPLES [Toc] [Back]
To encode and send a compiled program foo to user friend:
uuencode foo foo | mailx -s 'new program' friend
After receiving the mail message, user friend can decode the program
by first saving the message in a file foo.mail and executing the
WARNINGS [Toc] [Back]
The file is expanded by 35% (three bytes become four 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 for the specified file.
If an encoded file has the same name as the destination name specified
in it, uudecode starts overwriting the encoded file before decoding is
Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003
SEE ALSO [Toc] [Back]
elm(1), mail(1), mailx(1), shar(1), uucp(1), uux(1), uuencode(4).
STANDARDS CONFORMANCE [Toc] [Back]
uuencode,uudecode: XPG4, POSIX.2
Hewlett-Packard Company - 2 - HP-UX 11i Version 2: August 2003 [ Back ]