Commit | Line | Data |
---|---|---|
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 | 21 | uuencode, uudecode \- encode/decode a binary file for transmission via mail |
e0107ca5 KM |
22 | .SH SYNOPSIS |
23 | .B uuencode | |
24 | [ source ] remotedest | | |
25 | .B mail | |
26 | sys1!sys2!..!decode | |
27 | .br | |
28 | .B uudecode | |
29 | [ file ] | |
30 | .SH DESCRIPTION | |
31 | .I Uuencode | |
32 | and | |
33 | .I uudecode | |
34 | are used to send a binary file via uucp (or other) mail. | |
35 | This combination can be used over indirect mail links | |
36 | even when | |
f68c9796 | 37 | .IR uusend (1) |
e0107ca5 KM |
38 | is not available. |
39 | .PP | |
40 | .I Uuencode | |
41 | takes the named source file (default standard input) and | |
42 | produces an encoded version on the standard output. | |
43 | The encoding uses only printing ASCII characters, | |
44 | and includes the mode of the file and the | |
45 | .I remotedest | |
46 | for recreation on the remote system. | |
47 | .PP | |
48 | .I Uudecode | |
49 | reads an encoded file, | |
50 | strips off any leading and trailing lines added by mailers, | |
51 | and recreates the original file with the specified mode and name. | |
52 | .PP | |
53 | The intent is that all mail to the user ``decode'' should be filtered | |
92db425a KM |
54 | through the |
55 | .I uudecode | |
56 | program. This way the file is created automatically | |
e0107ca5 KM |
57 | without human intervention. |
58 | This is possible on the uucp network by either using | |
8edddc75 | 59 | .I sendmail |
e0107ca5 KM |
60 | or by making |
61 | .I rmail | |
62 | be a link to | |
63 | .I Mail | |
64 | instead of | |
92db425a | 65 | .IR mail . |
e0107ca5 | 66 | In each case, an alias must be created in a master file to get |
92db425a KM |
67 | the automatic invocation of |
68 | .IR uudecode . | |
e0107ca5 KM |
69 | .PP |
70 | If these facilities are not available, the file can be sent to a | |
71 | user on the remote machine who can uudecode it manually. | |
72 | .PP | |
73 | The encode file has an ordinary text form and can be edited | |
74 | by any text editor to change the mode or remote name. | |
92db425a | 75 | .SH SEE ALSO |
f68c9796 | 76 | atob(n), uusend(1), uucp(1), uux(1), mail(1), uuencode(5) |
e0107ca5 KM |
77 | .SH BUGS |
78 | The file is expanded by 35% (3 bytes become 4 plus control information) | |
79 | causing it to take longer to transmit. | |
80 | .PP | |
81 | The user on the remote system who is invoking | |
82 | .I uudecode | |
83 | (often | |
92db425a | 84 | .IR uucp ) |
e0107ca5 | 85 | must have write permission on the specified file. |