From owner-freebsd-doc Sun Mar 16 3:54:17 2003 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EDFC37B401; Sun, 16 Mar 2003 03:54:12 -0800 (PST) Received: from dignus.com (ip-64-32-254-102.dsl.iad.megapath.net [64.32.254.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33C3143F3F; Sun, 16 Mar 2003 03:54:11 -0800 (PST) (envelope-from rivers@dignus.com) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.11.6/8.11.3) with ESMTP id h2GBbaX37794; Sun, 16 Mar 2003 06:37:36 -0500 (EST) (envelope-from rivers@dignus.com) Received: (from rivers@localhost) by lakes.dignus.com (8.11.6/8.11.3) id h2GBrk620041; Sun, 16 Mar 2003 06:53:46 -0500 (EST) (envelope-from rivers) Date: Sun, 16 Mar 2003 06:53:46 -0500 (EST) From: Thomas David Rivers Message-Id: <200303161153.h2GBrk620041@lakes.dignus.com> To: pirat@access.inet.co.th, stable@FreeBSD.ORG Subject: Re: uuencode takes very long time Cc: doc@FreeBSD.ORG In-Reply-To: <20030316113452.GA309@thai-aec.org> Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org pirat wrote: > unfortunately, i had been stuck at a step of uuencoding. it took a > tremendious long time. i was waiting for 18 hours for nothing. > > uuencode my-pr.tar.gz > my-pr.uue > > do you have any comments or suggestion ? > Hello! It's a common mistake... and, you could argue that since it's so common the interface to uuencode is, well, less than obvious. From the man page of uuencode: SYNOPSIS uuencode [file] name uudecode [-cips] [file ...] So, you see, when you had "uuencode my-pr.tar.gz", you were not trying to uuencode the file "my-pr.tar.gz" - that parameter provides the name to use when uudecoding (on the "other side", as it were.) Thus, the uuencode encode command was waiting for 18 hours trying to read something from stdin... There are several ways to handle this: cat my-pr.tar.gz | uuencode my-pr.tar.gz This provides the file as input to uuencode, and provides the same name as the name of the file when it is decoded. Another answer: uuencode my-pr.tar.gz my-pr.tar.gz Which says to uuencode the file named "my-pr.tar.gz", and when it is uudecoded, the file's name is "my-pr.tar.gz". Try either of those, I think you'll be happy with the results. - Dave Rivers - -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message