1820390 Members
3490 Online
109623 Solutions
New Discussion юеВ

uuencode goes public

 
Vittorio_3
Advisor

uuencode goes public

Hi,
I use uuencode to convert bin file and can't make it produce output into file but threw it to standard output.
I play with all options: -m and >, no result.
Is there some weird setting for this command in my case.


THanks
Dai

$ uuencode plan plant
begin 600 plant
MPZ2BHY:4A9E`U:24@H69!<.DHJ.6E(690-6!E(4%XHB6F:-`U8&4A07BHX&C
MA92%E:-`U8&4A07#I**CEI2%F4##DX&BHD#)Q`7#EI6C@8.C0->%F:*6E07!
MA(29A:*B0,.6A(4%P82$F86BHD#Q!<&$A)F%HJ)`\@7#B:.H!>*C@:.%!>F)
MEP7#EJ25HYFH!=>(EI6%0/$%Y**%F4#$A8:)E86$0/$%Y**%F4#$A8:)E86$
M0/(%R96!@Z.)I84%Q(&CA4#!@X.6I)6C0,.3EJ*%A$!`0$!`0$!`0$!`0$!`
I0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$!`0$``
`
end
2 REPLIES 2
OldSchool
Honored Contributor

Re: uuencode goes public

uuencode is always going to write to stdout. To save it to file try:

uuencode plan plant > plant.txt

Andrew Merritt_2
Honored Contributor

Re: uuencode goes public

As the previous reply says, uuencode only writes to stdout.

You may have been confused by the uuencode man page, which shows the arguments:

SYNOPSIS
uuencode [source] remotedest

'remotedest' is explained as:

The encoding uses
only printing ASCII characters, includes the original mode of the
input file, and preserves the value of the remotedest argument which
is the intended name for the file when it is restored later on the
remote system.


In your example, note that although the file was called 'plan', in the uuencode output it is now named 'plant' as that was the second argument to uuencode.

Andrew