uuencode or uudecode Command Purpose Encodes or decodes a binary file for transmission using electron- ic mail. Syntax uuencode [ SourceFile ] RemoteFile uudecode [ InFile ] Description The uuencode command converts a binary file to ASCII data before using BNU (or uucp) mail to send the file to a remote system. The uudecode command converts ASCII data created by the uuencode command back into its original binary form. The uuencode command takes the named SourceFile (default standard input) and produces an encoded version on the standard output. The encoding uses only printable ASCII characters, and includes the mode of the file and the RemoteFile filename used for recrea- tion of the binary image on the remote system. To decode a file, the file should be submitted as input to the uudecode program. The uudecode command reads an encoded file, strips off leading and trailing lines added by mailers, and re- creates the original file with the specified mode and name. Decoding a file causes the result to be automatically saved to a file. The file name is identical to the remote file argument or- iginally supplied to the uuencode command. Examples 1. To encode a file on the local system and send it to a user on another system, using the mail program, enter: uuencode unix unix | mail jsmith@mysys The file unix will be encoded and mailed to user jsmith on sys- tem mysys. 2. To encode a file on your local system, enter: uuencode /usr/lib/boot/unix pigmy.goat > /tmp/con The file /usr/lib/boot/unix will be encoded as pigmy.goat and placed in the /tmp/con file. 3. To decode this file on a local system, enter: uudecode /tmp/con The file /tmp/con will be decoded and copied to pigmy.goat. The file pigmy.goat will be identical to the originally encoded file /usr/lib/boot/unix. Implementation Specifics These commands are part of the Basic Networking Utilities Program (BNU) in BOS Extensions 1. Files /usr/bin/uuencode Path name of the uuencode command. /usr/bin/uudecode Path name of the uudecode command. Related Information The mail command, rmail command, sendmail command, uucp com- mand, uusend command, uux command.