uuencode(1) doesn't work?

Stijn Hoop stijn at win.tue.nl
Fri Jun 4 00:02:15 PDT 2004


On Thu, Jun 03, 2004 at 11:41:08PM -0700, Darren Pilgrim wrote:
> I'm trying to uuencode some data, but uuencode doesn't seem to work
> properly.  I'm using FreeBSD 4.8-RELEASE-p22.  Here are some examples:
> 
> $ date | uuencode
> usage: uuencode [-m] [-o outfile] [infile] remotefile
>        b64encode [-o outfile] [infile] remotefile
> $ cat /etc/rc.conf | uuencode
> usage: uuencode [-m] [-o outfile] [infile] remotefile
>        b64encode [-o outfile] [infile] remotefile
> $
> 
> Specifying a filename, rather than using a pipe, doesn't seem to work
> either:
> 
> $ uuencode file
> begin 644 file
> 
> After printing the begin line it idles.  A debug copy of uuencode run
> with gdb shows the program stopping on the read() call trying to get
> data (fread() called from the while loop in encode()).
> 
> Anyone know why?

It has insane arcane syntax -- you need to specify 'file' because that's
what's written in the begin line, PLUS you need to give it data:

$ uuencode file < file > file.uu

should work.

--Stijn

-- 
If today is the first day of the rest of your life, what the hell was
yesterday?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040604/41daba36/attachment.bin


More information about the freebsd-questions mailing list