Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

UUENCODE Question

0 views
Skip to first unread message

Ellen Kessler

unread,
Sep 18, 1996, 3:00:00 AM9/18/96
to

When I run the following command, an encoded version of a binary file
prints to the screen, but doesn't create a new encoded file. What am I
doing wrong or not doing?

encode sourcefilename newfilename

(Are there any requirments for the newfilename (file-label) or the
sourcefilename? These are important when running UUDECODE. In this case,
I renamed the sourcefile after I downloaded it. It was an MSWord doc and
I don't know if Word stores name data with the file.)

Thanks for any help.

--
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
: Ellen Kessler : "The only thing to do with good advice is pass it on. :
: e...@panix.com : It is never any use to oneself." -Oscar Wilde - :
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Bill Karwin

unread,
Sep 18, 1996, 3:00:00 AM9/18/96
to

Ellen Kessler wrote:
>
> When I run the following command, an encoded version of a binary file
> prints to the screen, but doesn't create a new encoded file. What am I
> doing wrong or not doing?
>
> encode sourcefilename newfilename

The arguments to uuencode are (1) the file to encode and
(2) the name that the file should be when you decode it.
The encoded stream is printed to stdout, and you should
redirect it with > filename.uu. I usually don't care
what the filename.uu is called, because I am usually
going to send it via email (which doesn't even record
the name of the file) and then I remove the .uu file.

--
Bill Karwin Senior Technical Support Engineer
Borland International InterBase Technical Services
bka...@interbase.borland.com http://www.armory.com/~billk/

Dustan Hellwig

unread,
Sep 19, 1996, 3:00:00 AM9/19/96
to

Ellen Kessler <e...@panix.com> wrote in article <51q022$6...@panix.com>...

> When I run the following command, an encoded version of a binary file
> prints to the screen, but doesn't create a new encoded file. What am I
> doing wrong or not doing?
>
> encode sourcefilename newfilename
>

Use the redirect function instead...

encode sourcefilename > newfilename

D

MARREEL CHRIS

unread,
Sep 22, 1996, 3:00:00 AM9/22/96
to Dustan Hellwig, e...@panix.com
> DI think this is NOT correct !
The UUENCODE needs TWO arguments and that can be redirected, to a file or piped
into mailx...

The two arguments are :
1e argument : filename to encode
2e argument : filename that the de-coded file wil have. (it is this filename
that is saved in the BEGINning of the resulting uuencoded ascii-file.
Normaly you should use TWICE the SAME filename. The reason WHY two arguments, if in
generaly all the cases you should use TWICE the same name ? -> The FIRST can contain
a FULL PATHNAME and the second sould only contain the filename !
e.g. uuencode /users/loginname/directory/filename filename >
/users/loginname/direcotry/filename.uue
e.g. uuencode /users/loginname/directory/filename filename | mailx e-mail-adress@...


Greetings.

0 new messages