Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Nov 2001 18:44:44 -0600 (CST)
From:      Ryan Thompson <ryan@sasknow.com>
To:        Maciek <dentysta@pc42.lublin.sdi.tpnet.pl>
Cc:        questions@FreeBSD.ORG
Subject:   Re: percent progress
Message-ID:  <Pine.BSF.4.21.0111301834090.55047-100000@ren.sasknow.com>
In-Reply-To: <20011201000609.A13518@pc42.lublin.sdi.tpnet.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ryan@sasknow.com>
  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0111301834090.55047-100000>