From owner-freebsd-questions@FreeBSD.ORG Fri Jun 4 00:02:14 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D730616A4CF; Fri, 4 Jun 2004 00:02:14 -0700 (PDT) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DD6743D45; Fri, 4 Jun 2004 00:02:14 -0700 (PDT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.11/8.12.11) with ESMTP id i54728Fc057872; Fri, 4 Jun 2004 09:02:08 +0200 (CEST) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.11/8.12.11/Submit) id i54728Hj057871; Fri, 4 Jun 2004 09:02:08 +0200 (CEST) (envelope-from stijn) Date: Fri, 4 Jun 2004 09:02:08 +0200 From: Stijn Hoop To: Darren Pilgrim Message-ID: <20040604070208.GB52278@pcwin002.win.tue.nl> References: <002101c449fe$edf7b010$0a2a15ac@spud> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FkmkrVfFsRoUs1wW" Content-Disposition: inline In-Reply-To: <002101c449fe$edf7b010$0a2a15ac@spud> User-Agent: Mutt/1.4.2.1i X-Bright-Idea: Let's abolish HTML mail! cc: fanf@freebsd.org cc: questions@freebsd.org Subject: Re: uuencode(1) doesn't work? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 07:02:15 -0000 --FkmkrVfFsRoUs1wW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > $ 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 > $ >=20 > Specifying a filename, rather than using a pipe, doesn't seem to work > either: >=20 > $ uuencode file > begin 644 file >=20 > 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()). >=20 > 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 --=20 If today is the first day of the rest of your life, what the hell was yesterday? --FkmkrVfFsRoUs1wW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAwB5wY3r/tLQmfWcRAg+SAJ40k9IV0EAYq3XlFh1PCDZfIYuvqgCgkWxd teCcdaQDfCVnkwMzQB6p4Hc= =jvy4 -----END PGP SIGNATURE----- --FkmkrVfFsRoUs1wW--