From owner-freebsd-questions Fri Nov 30 16:45:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by hub.freebsd.org (Postfix) with ESMTP id EE6F837B41A for ; Fri, 30 Nov 2001 16:45:16 -0800 (PST) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id SAA56723; Fri, 30 Nov 2001 18:44:44 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Fri, 30 Nov 2001 18:44:44 -0600 (CST) From: Ryan Thompson To: Maciek Cc: questions@FreeBSD.ORG Subject: Re: percent progress In-Reply-To: <20011201000609.A13518@pc42.lublin.sdi.tpnet.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Maciek wrote to questions@FreeBSD.ORG: > Hi, > > can I have percent progress in mv or cp? Here's a more academic answer: You shouldn't really need one for mv, unless you are mv'ing thousands of files. (Note that if you mv a directory, even if it contains thousands (or millions) of files, that it completes with only one actual move operation... so it returns almost immediately). cp, on the other hand, could potentially support something like this. Someone already suggested using an existing file manager for this, which is a fine idea. One trouble with copying files, though, is one doesn't always know how much progress has been made. (i.e., cp from a special file), so it wouldn't be perfect. For most applications, though, it would be OK. It would be fairly trivial to extend cp(1) to include something like this, but it would cause funny results in a lot of scripts that don't expect any output from cp(1). You'd want to make a copy of the cp(1) source under a different name, and make your modifications there. Hope this helps, - Ryan > > Rodion > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message