WJHCS On-line
[an error occurred while processing this directive] Using uuencode/uudecode

If you want to send a binary file via email to someone, you must first convert it with uuencode.

How to use uuencode:

  • FTP your file to your wjh account.* (If you don't know how to do this,consult our documentation on the subject.)
  • From within wjh, type:
    uuencode filename restorename > codedname

    where filename is the name of the binary file you wish to encode, restorename is the name of the restored file when the uuencoded file is decoded (usually the same as filename), and codedname is the name you wish the encoded name to have (such as filename.uu).
  • Now you can mail the encoded file. One way to send it to someone without adding any comments to it is to type:
    mail recipient < filename 

    where recipient is the email address of the person to whom you are sending the file, and filename is the name of the encoded file. If you wish to mail it with your comments, you can send it as an attachment from within Pine, or you can insert it into the body of the message (with ctrl-r from within Pine). Your comments will not affect the decoded output.

How to use uudecode:

  • If you have received a uuencoded document via email, save it to a file. (Within Pine, type "e" and Pine will prompt you for a file name.)
  • Type:
    uudecode filename

    where filename is the name of the file to be decoded.
  • You should now find the decoded file there. Type "ls" to get a listing of your files.
    * A note to Macintosh users: if you use the Fetch program to transfer your files onto your wjh account, it will ask you what format to use. From the pulldown menu next to Format:, select BinHex. "BinHex" accomplishes the same thing as uuencode, that is to say, it prepares a binary file for transmission. It's the Macintosh way of doing it. Thus, you won't have to uuencode the file.


William James Hall Computer Services

[ Research Engine | WJH Home | WJHCS]

Last modified Sep 30, 1997, 18:24:23 EDT