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