Updates on "mv", "cp" commands

View: New views
4 Messages — Rating Filter:   Alert me  

Parent Message unknown Updates on "mv", "cp" commands

by BRAGA, Bruno :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I don't know if that's the place to post this question, but I am sure
someone here will be able to give me hints on how to proceed.

I would like to propose and patch improvements on the "mv" (move) and
"cp" (copy) commands, by adding options for progress information.

The idea is that any GUI actions already do it graphically, and other
CLI applications, such as "rsync", have this as an extended option
"--progress". This is handy for large files processing, for instance.

Can anyone give me a little help? Maybe this is even an old idea that
was discarded because of performance reasons, I don't know..

Thanks in advance,

Braga, Bruno



Re: Updates on "mv", "cp" commands

by Mike Frysinger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 01 November 2009 06:56:45 BRAGA, Bruno wrote:
> I would like to propose and patch improvements on the "mv" (move) and
> "cp" (copy) commands, by adding options for progress information.

this is the place for such things, but this topic has come up before and
rejected (for specific commands).  if you search the mail archives, you'll
find references to an accepted solution (a helper utility that outputs
progress bars based on feedback from arbitrary utilities).  while people have
posted patches for the first (rejected) method, no one has done things for the
latter method.
-mike


signature.asc (853 bytes) Download Attachment

Re: Updates on "mv", "cp" commands

by Kamil Dudka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 01 of November 2009 12:56:45 BRAGA, Bruno wrote:
> I don't know if that's the place to post this question, but I am sure

As good as any.

> someone here will be able to give me hints on how to proceed.
>
> I would like to propose and patch improvements on the "mv" (move) and
> "cp" (copy) commands, by adding options for progress information.
>
> The idea is that any GUI actions already do it graphically, and other
> CLI applications, such as "rsync", have this as an extended option
> "--progress". This is handy for large files processing, for instance.
>
> Can anyone give me a little help? Maybe this is even an old idea that
> was discarded because of performance reasons, I don't know..

Here are some discussions I've met:

https://bugzilla.redhat.com/show_bug.cgi?id=237553
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/64067
http://www.linux-archive.org/archlinux-development/167447-add-g-option-cp-mv.html

Kamil



Re: Updates on "mv", "cp" commands

by BRAGA, Bruno :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, Mike.

I got the references of this discussion (Thanks Kamil), and see the actually
this talk is long. Well, I still think it stinks to use rsync for such task,
but the addition of repetitive code for each applications really calls for
more generic implementation underneath them, as some people has commented.

Sorry for bringing this topic up again (somehow I searched the wrong
places), but it would be nice to find a solution that could work for
everything. We could just leave "disabled" by default, if the performance is
at hand.

Thank you all for the comments.

Regards,

******************************
Braga, Bruno
http://www.brunobraga.net
bruno.braga@...
*******************************

"The future belongs to people who see possibilities before they become
obvious!." -- Ted Levitt


On Sun, Nov 1, 2009 at 11:48 PM, Mike Frysinger <vapier@...> wrote:

> On Sunday 01 November 2009 06:56:45 BRAGA, Bruno wrote:
> > I would like to propose and patch improvements on the "mv" (move) and
> > "cp" (copy) commands, by adding options for progress information.
>
> this is the place for such things, but this topic has come up before and
> rejected (for specific commands).  if you search the mail archives, you'll
> find references to an accepted solution (a helper utility that outputs
> progress bars based on feedback from arbitrary utilities).  while people
> have
> posted patches for the first (rejected) method, no one has done things for
> the
> latter method.
> -mike
>