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 - :
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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/
Use the redirect function instead...
encode sourcefilename > newfilename
D
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.