______________________________________________________________________________ UNIX: Encoding and decoding files with uuencode/uudecode Q: I'm having trouble determining the correct syntax for invoking uuencode. I would like to encode a file and leave the result in the same directory. A: uuencode is a classic UNIX tool, and therefore uses a typical UNIX syntax: uuencode [infile] remotefile That means that it generally takes standard input from some other program (unless you supply "infile") and sends it's output to standard output (the terminal, unless you specify a filename and redirect standard output to it: halcyon # uuencode .login .login begin 744 .login M(PE *",I+FQO9VEN"3 uuencode .login Login > login.UU This takes the file .login in your current directory, encodes it and puts the result in a file named login.UU. When you decode the file with uudecode, the resulting file will be named "Login": halcyon # uudecode login.UU halcyon # ls -lax Login -rwxr--r-- 1 root 100 Jul 24 03:06 Login halcyon # (11-Apr-96/unieadfw/WRD) ______________________________________________________________________________ Copyright 1996 Northwest Nexus Inc. All Rights Reserved. This document may not be reproduced nor redistributed in any form without express permission; contact us at support@halcyon.com with questions.