date and time created 87/06/20 11:36:07 by minshall
[unix-history] / usr / src / usr.bin / uuencode / uuencode.1
CommitLineData
e0107ca5
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
92db425a 5.\" @(#)uuencode.1 6.2 (Berkeley) %G%
e0107ca5 6.\"
07717c3a 7.TH UUENCODE 1C ""
e0107ca5
KM
8.UC 4
9.SH NAME
92db425a 10uuencode, uudecode \- encode/decode a binary file for transmission via mail
e0107ca5
KM
11.SH SYNOPSIS
12.B uuencode
13[ source ] remotedest |
14.B mail
15sys1!sys2!..!decode
16.br
17.B uudecode
18[ file ]
19.SH DESCRIPTION
20.I Uuencode
21and
22.I uudecode
23are used to send a binary file via uucp (or other) mail.
24This combination can be used over indirect mail links
25even when
8edddc75 26.IR uusend (1C)
e0107ca5
KM
27is not available.
28.PP
29.I Uuencode
30takes the named source file (default standard input) and
31produces an encoded version on the standard output.
32The encoding uses only printing ASCII characters,
33and includes the mode of the file and the
34.I remotedest
35for recreation on the remote system.
36.PP
37.I Uudecode
38reads an encoded file,
39strips off any leading and trailing lines added by mailers,
40and recreates the original file with the specified mode and name.
41.PP
42The intent is that all mail to the user ``decode'' should be filtered
92db425a
KM
43through the
44.I uudecode
45program. This way the file is created automatically
e0107ca5
KM
46without human intervention.
47This is possible on the uucp network by either using
8edddc75 48.I sendmail
e0107ca5
KM
49or by making
50.I rmail
51be a link to
52.I Mail
53instead of
92db425a 54.IR mail .
e0107ca5 55In each case, an alias must be created in a master file to get
92db425a
KM
56the automatic invocation of
57.IR uudecode .
e0107ca5
KM
58.PP
59If these facilities are not available, the file can be sent to a
60user on the remote machine who can uudecode it manually.
61.PP
62The encode file has an ordinary text form and can be edited
63by any text editor to change the mode or remote name.
92db425a
KM
64.SH SEE ALSO
65atob(n), uusend(1C), uucp(1C), uux(1C), mail(1), uuencode(5)
e0107ca5
KM
66.SH BUGS
67The file is expanded by 35% (3 bytes become 4 plus control information)
68causing it to take longer to transmit.
69.PP
70The user on the remote system who is invoking
71.I uudecode
72(often
92db425a 73.IR uucp )
e0107ca5 74must have write permission on the specified file.