From owner-freebsd-questions@FreeBSD.ORG Thu Jun 3 23:41:16 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 EF90F16A4CF; Thu, 3 Jun 2004 23:41:16 -0700 (PDT) Received: from mail.bitfreak.org (mail.bitfreak.org [65.75.198.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCB3F43D2D; Thu, 3 Jun 2004 23:41:16 -0700 (PDT) (envelope-from dmp@bitfreak.org) Received: from speck.techno.pagans (c-24-21-232-241.client.comcast.net [24.21.232.241]) by mail.bitfreak.org (Postfix) with ESMTP id EA1C82A41A; Thu, 3 Jun 2004 23:41:15 -0700 (PDT) Received: from spud (one0.techno.pagans [172.21.42.10]) by speck.techno.pagans (Postfix) with ESMTP id 09232A926; Thu, 3 Jun 2004 23:40:29 -0700 (PDT) From: "Darren Pilgrim" To: Date: Thu, 3 Jun 2004 23:41:08 -0700 Message-ID: <002101c449fe$edf7b010$0a2a15ac@spud> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 cc: fanf@freebsd.org Subject: 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 06:41:17 -0000 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?