LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2015, 02:21 AM   #1
willembor
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Rep: Reputation: Disabled
Request brainwaves on progress indicator for directories copy within a loop statement


Hello to all. Glad to be on the newbie bus. I have written a ksh shell script containing a function with a "for" loop copying directories to a USB HDD. Tried to use zenity as a progress indicator but as we all know it does not render itself very effective in this regard and requires me to click "OK" after every directory. I need a progress bar that will finish only after ALL directories were successfully copied with a proper progress percentage ending at 100% after the last directory was copied. It needs to look neat and sort of professional. Anyone out there that has an idea on this? Below is the basic loop statement:

function COPY
{
for DIRCOPY in $LIST #previously defined
do
cp -r $PATH/$DIRCOPY USB_HDD
done
}

Cannot wait to hear from all the wizzards out there. Been scratching my head for a while now and cannot find any workable solution on the internet.
 
Old 10-12-2015, 06:36 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Hi =^.^=
I'd go Python on that one...in fact, this is what PYQT4 is pretty good at ^^
Melissa
By the way - welcome tot he forum (did not notice the register date there ...)

Last edited by ButterflyMelissa; 10-13-2015 at 10:45 AM.
 
Old 10-12-2015, 07:08 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
"man pv"
 
1 members found this post helpful.
Old 10-12-2015, 03:18 PM   #4
willembor
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanx Melissa

Will research the Python option. Any ready made examples or ideas to guide me in the right direction? Will take some time to familiarize myself with Python.

Willem
 
Old 10-12-2015, 04:35 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
http://www.linuxquestions.org/questi...ss-bar-407381/
 
1 members found this post helpful.
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can someone improve my progress indicator? frater Programming 1 01-07-2011 04:29 AM
md5sum progress indicator Ianmcc Linux - Software 3 02-04-2009 02:50 PM
gui file copy progress indicator? zero79 Linux - Software 3 07-10-2005 02:00 AM
cp command with progress indicator exodist Linux - Software 1 07-21-2004 06:27 PM
bash: How can I create a progress indicator? apeekaboo Programming 5 06-27-2003 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:03 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