16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

Portability<br />

Related Information<br />

uuencode<br />

P<strong>OS</strong>IX.2 User Portability Extension, X/Open Portability Guide. Generally found on<br />

most <strong>UNIX</strong> systems.<br />

uuencode — Encode a file for safe transmission<br />

Format<br />

Description<br />

Options<br />

Examples<br />

uuencode [-m] [infile] remotefile<br />

When files are transmitted over a network or over phone lines, nonprintable<br />

characters (for example, control characters) may be interpreted as commands,<br />

telling the network to do something. In general, therefore, it is not safe to transmit a<br />

file if it contains nonprintable characters.<br />

uuencode translates a binary file into a special code that consists entirely of<br />

printable characters from the P<strong>OS</strong>IX portable character set. A file encoded in this<br />

way is generally safe for transmission over networks and phone lines. uuencode is<br />

often used to send binary files through electronic mail.<br />

If an infile is specified on the uuencode command line, uuencode reads that file as<br />

input. Otherwise, it reads the standard input. uuencode always writes the encoded<br />

result to the standard output. The encoded version of the data is about 35% larger<br />

than the original. If the size is a problem, you can shrink the file with compress<br />

before encoding it. The recipient must decode it and then uncompress it.<br />

The remotefile command-line argument is the name that the file should be given<br />

after it has been transmitted to its destination. Specifying a remotefile operand of<br />

/dev/stdout indicates that uudecode is to use standard output. When the file<br />

reaches its destination, uudecode can be used to translate the encoded data into<br />

its original form. The first line of the encoded file records the file’s access<br />

permission bits and the remotefile argument.<br />

Because the encoded file consists entirely of printable characters, you may use a<br />

text editor to edit the file. Of course, the only things you are likely to edit are the<br />

name of the original file or the name of the remote file.<br />

For a summary of the <strong>UNIX</strong>03 changes to this command, see Appendix N, “<strong>UNIX</strong><br />

shell commands changed for <strong>UNIX</strong>03,” on page 943.<br />

-m Encode the output using the MIME Base64 algorithm. If -m is not specified,<br />

the historical algorithm is used.<br />

This command encodes the file long_name.tar.Z so it decodes with the name<br />

arc.trz and redirects the output to arc.uue:<br />

uuencode long_name.tar.Z arc.trz > arc.uue<br />

uudecode<br />

Chapter 2. Shell command descriptions 743

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!