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

Help using uuencode/uudecode

0 views
Skip to first unread message

Lorenzo Soncini

unread,
May 26, 1997, 3:00:00 AM5/26/97
to

I need to create a text file from a tar archive using the command
uuencode. If I use the simple command
uuencode file.tar
I see the text file on the screen but if I try to redirect the output in a
file with the command
uuencode file.tar > file.text
the system crate the file but don't write anything in to the file and don't
stop the command if I don't break the execution with CTRL+C.

Sorry for my bad English and thanks for any help,
Lorenzo Soncini
lson...@linknet.it

Bob Hoekstra

unread,
May 26, 1997, 3:00:00 AM5/26/97
to

Lorenzo Soncini wrote:
>
> I need to create a text file from a tar archive using the command
> uuencode. If I use the simple command
> uuencode file.tar

This sounds suspiciously like a tar archive. Try instead
tar tvf file.tar
which should list the contents of the archive.

uuencode creates an encoded version of the input file, and needs a
second argument. See the man page, and also the man page for uudecode.

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GO/! d- s++:+ a+ C++(++++) USBVLHI*++++$ P+ L++ E--- W++ N++ w--- O- V-
PS+
PE- Y+ PGP- t+ 5++ X+ R* tv+ b+ DI++ D G e(*) h++/-- r+++ y?
------END GEEK CODE BLOCK------

-----------------------------------------------------
Bob Hoekstra: Unix Consultant
http://www.khamsin.demon.co.uk
Return mailto:hoeks...@cft.philips.nl
Home mailto:b...@khamsin.demon.co.uk
-----------------------------------------------------

gl...@ov.com

unread,
May 27, 1997, 3:00:00 AM5/27/97
to

In article d541...@engineering5.engineering.it, "Lorenzo Soncini" <lson...@mbox.linknet.it> writes:
> I need to create a text file from a tar archive using the command
>uuencode. If I use the simple command
> uuencode file.tar
>I see the text file on the screen but if I try to redirect the output in a
>file with the command
> uuencode file.tar > file.text
>the system crate the file but don't write anything in to the file and don't
>stop the command if I don't break the execution with CTRL+C.
>
> Sorry for my bad English and thanks for any help,
> Lorenzo Soncini
> lson...@linknet.it


The uuencode command has the following format:

uuencode source_name embedded_name

Try the following command:

uuencode file.tar file.tar > file.uu

Fletche...@ov.com

Peter J Naylor

unread,
May 28, 1997, 3:00:00 AM5/28/97
to Lorenzo Soncini

[Posted and mailed]

In article <01bc69bf$89efdec0$d541...@engineering5.engineering.it>,


"Lorenzo Soncini" <lson...@mbox.linknet.it> writes:
> I need to create a text file from a tar archive using the command
> uuencode. If I use the simple command
> uuencode file.tar
> I see the text file on the screen but if I try to redirect the output in a
> file with the command
> uuencode file.tar > file.text
> the system crate the file but don't write anything in to the file and don't
> stop the command if I don't break the execution with CTRL+C.

Lorenzo,

the uuencode command needs to be used in the following format:

uuencode file.tar file.tar >file.text

The second "file.tar" is put into the header information of "file.text"
so that when someone uses uudecode to return the file to its binary form,
it knows what to call it. Seems a little redundant I know... but truth
is stranger than fiction.

> Sorry for my bad English and thanks for any help,

You got the point across, and I assure you my Italian is far worse ;)

--
/*-------------------------------------------------------------*
* Peter James Naylor ## SysAdmin, Supernal Technologies, Inc. *
*-------------------------------------------------------------*
* pe...@supernal.net ## <http://www.supernal.net> *
*------------------------------------------------*/

0 new messages