Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: C (gcc) code for copying with progress bar (cp clone)

  1. #11
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: C (gcc) code for copying with progress bar (cp clone)

    Good luck, and please make it available to the linux community

  2. #12
    Join Date
    Nov 2008
    Location
    Maine
    Beans
    1,126
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: C (gcc) code for copying with progress bar (cp clone)

    I bet there is a way to do it using wget!
    I havent really thought about it though.

    then I wondered maybe other commands have the progess bar... like cat, mv or something else.
    then I found this:
    http://www.ex-parrot.com/~chris/stuff/cwp.c.gz

    maybe that will be helpful!
    ~Conradin~

  3. #13
    Join Date
    Feb 2009
    Beans
    1,469

    Re: C (gcc) code for copying with progress bar (cp clone)

    Quote Originally Posted by rsync(1)
    --progress show progress during transfer
    rsync wins again!

    When this topic first came up I thought "Isn't there a command line switch for that?" But I checked cp(1) and saw nothing, so chalked it up to poor memory. For some reason the mention of wget caused it to dawn on me that I had been thinking of rsync in the first place.
    Last edited by trent.josephsen; March 22nd, 2013 at 12:10 AM.

  4. #14
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: C (gcc) code for copying with progress bar (cp clone)

    Quote Originally Posted by trent.josephsen View Post
    rsync wins again!

    When this topic first came up I thought "Isn't there a command line switch for that?" But I checked cp(1) and saw nothing, so chalked it up to poor memory. For some reason the mention of wget caused it to dawn on me that I had been thinking of rsync in the first place.
    +1

    You are right. rsync is the 'power' alternative to cp as always

  5. #15
    Join Date
    Feb 2007
    Beans
    863

    Re: C (gcc) code for copying with progress bar (cp clone)

    actually there is one already with cp -g

    http://www.mail-archive.com/bug-core.../msg00610.html

    would you know where I can get the *.c source?

  6. #16
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: C (gcc) code for copying with progress bar (cp clone)

    The source is included in the message you linked. It's a patch to cp/mv code. However, it appears this patch has been rejected by GNU coreutils developers.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •