Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-10-2015, 03:21 AM   #1
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

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, 07:36 AM   #2
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,714
Blog Entries: 23

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

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

Rep: Reputation: 3040Reputation: 3040Reputation: 3040Reputation: 3040Reputation: 3040Reputation: 3040Reputation: 3040Reputation: 3040Reputation: 3040Reputation: 3040Reputation: 3040
"man pv"
1 members found this post helpful.
Old 10-12-2015, 04:18 PM   #4
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.

Old 10-12-2015, 05:35 PM   #5
LQ Veteran
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
1 members found this post helpful.


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 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 05:29 AM
md5sum progress indicator Ianmcc Linux - Software 3 02-04-2009 03:50 PM
gui file copy progress indicator? zero79 Linux - Software 3 07-10-2005 03:00 AM
cp command with progress indicator exodist Linux - Software 1 07-21-2004 07:27 PM
bash: How can I create a progress indicator? apeekaboo Programming 5 06-27-2003 11:41 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:11 AM.

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