add Berkeley specific copyright notice
[unix-history] / usr / src / usr.bin / uuencode / uuencode.1
CommitLineData
33075542
KB
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
e0107ca5 3.\"
33075542
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
16.\" @(#)uuencode.1 6.4 (Berkeley) %G%
e0107ca5 17.\"
f68c9796 18.TH UUENCODE 1 ""
e0107ca5
KM
19.UC 4
20.SH NAME
92db425a 21uuencode, uudecode \- encode/decode a binary file for transmission via mail
e0107ca5
KM
22.SH SYNOPSIS
23.B uuencode
24[ source ] remotedest |
25.B mail
26sys1!sys2!..!decode
27.br
28.B uudecode
29[ file ]
30.SH DESCRIPTION
31.I Uuencode
32and
33.I uudecode
34are used to send a binary file via uucp (or other) mail.
35This combination can be used over indirect mail links
36even when
f68c9796 37.IR uusend (1)
e0107ca5
KM
38is not available.
39.PP
40.I Uuencode
41takes the named source file (default standard input) and
42produces an encoded version on the standard output.
43The encoding uses only printing ASCII characters,
44and includes the mode of the file and the
45.I remotedest
46for recreation on the remote system.
47.PP
48.I Uudecode
49reads an encoded file,
50strips off any leading and trailing lines added by mailers,
51and recreates the original file with the specified mode and name.
52.PP
53The intent is that all mail to the user ``decode'' should be filtered
92db425a
KM
54through the
55.I uudecode
56program. This way the file is created automatically
e0107ca5
KM
57without human intervention.
58This is possible on the uucp network by either using
8edddc75 59.I sendmail
e0107ca5
KM
60or by making
61.I rmail
62be a link to
63.I Mail
64instead of
92db425a 65.IR mail .
e0107ca5 66In each case, an alias must be created in a master file to get
92db425a
KM
67the automatic invocation of
68.IR uudecode .
e0107ca5
KM
69.PP
70If these facilities are not available, the file can be sent to a
71user on the remote machine who can uudecode it manually.
72.PP
73The encode file has an ordinary text form and can be edited
74by any text editor to change the mode or remote name.
92db425a 75.SH SEE ALSO
f68c9796 76atob(n), uusend(1), uucp(1), uux(1), mail(1), uuencode(5)
e0107ca5
KM
77.SH BUGS
78The file is expanded by 35% (3 bytes become 4 plus control information)
79causing it to take longer to transmit.
80.PP
81The user on the remote system who is invoking
82.I uudecode
83(often
92db425a 84.IR uucp )
e0107ca5 85must have write permission on the specified file.