uuencode and uudecode are used in combination to send a text or binary file via mailx. You can send the file either directly or via a mailx chain linking a series of directly linked systems.
uudecode reads an encoded file and recreates the original file with the access permissions (file modes) and name specified in the encoding information (see uuencode on "uuencode encode a binary file").
You must have write permission for the encoded file.
uudecode runs with the user ID assigned to uucp. Thus permission to use uudecode may be denied in a directory where there is no write permission for "others".
Refer to uuencode for further information.
Syntax
uudecode[ file] |
File to be decoded. file not specified: |
Locale
The following environment variables affect the execution of uudecode: LANG Provide a default value for the internationalization variables that are unset or null. If LANG is unset of null, the corresponding value from the implementation-specific default locale will be used. If any of the internationalization variables contains an invalid setting, the utility will behave as if none of the variables had been defined. LC_ALL If set to a non-empty string value, override the values of all the other internationalization variables. LC_CTYPE Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single- as opposed to multi-byte characters in arguments and input files). LC_MESSAGES Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error. NLSPATH Determine the location of message catalogs for the processing of LC_MESSAGES. |
Example
User bill has been mailed an encoded file:
The header line of the encoded message contains the word begin followed by the file mode (744) and the name of the file (scrpt). The file is now to be restored to its original condition and have the specified name scrpt:
|
See also
mailx, uuencode |