LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-05-2004, 12:23 PM   #1
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Rep: Reputation: 30
Cool cp with progress bar?


It'd be nice if cp had a progress bar like scp does. I allthewebed for a wrapper script that does that but couldn't find one... anyone know of one?
 
Old 11-05-2004, 01:06 PM   #2
yano
Member
 
Registered: Nov 2004
Location: Slovak republic - Bratislava
Distribution: debian & gentoo
Posts: 43

Rep: Reputation: 15
Why do You need it? It just slow down things a bit...
But try mc, it does it for you very nicely ;-)
 
Old 04-22-2005, 01:08 AM   #3
SDraconis
LQ Newbie
 
Registered: Apr 2005
Distribution: Debian Sarge, Gentoo
Posts: 16

Rep: Reputation: 0
I know this response would be way late, but I was looking for something like this myself (hence why I happened upon this post). You can use bar (http://clpbar.sourceforge.net/). The command for copying a file with a progress bar would then be
Code:
bar --in-file source.file | dd of=dest.file
. You could also make a simple shell script to make it easier, of course.
Code:
#!/bin/sh
bar --in-file $1 | dd of=$2
exit 0
 
Old 04-27-2005, 05:38 PM   #4
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Original Poster
Rep: Reputation: 30
Thanks man. It's not perfect but it's not bad, and better than nothing. I'm going to try to get it to do recursive copies (or at least make it so that I don't have to type in the full filename for output instead of just directory). Maybe I can pipe it to cp instead of dd...

thanks
rw
 
Old 04-27-2005, 06:53 PM   #5
SDraconis
LQ Newbie
 
Registered: Apr 2005
Distribution: Debian Sarge, Gentoo
Posts: 16

Rep: Reputation: 0
Yeah, I was immediately annoyed with that too. I am not sure if you can actually pipe to cp like that, as cp generally takes its arguments as files rather than dealing with streams. If I were a good c programmer, I would try to pull the bar code out of bar or wget and try to put it into a version of cp, but alas...
 
Old 04-27-2005, 07:49 PM   #6
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You might be able to get cp to accept the output if you run it through xargs first.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bootsplash - progress bar - not working depi Linux - General 2 08-13-2007 05:26 AM
Progress bar image craigs1987 Fedora 0 05-27-2004 02:31 PM
cp: progress bar chii-chan Linux - General 2 10-30-2003 06:30 PM
Progress Bar zael Programming 3 10-01-2003 12:20 PM
lol slackware progress bar... roofy Slackware 2 05-07-2003 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration