I got an issue to be solved. I need to show the user a progress bar while executing an process using shell script
Example:
While updating firmware lets assume this will take 2 min to upgrade i need the shell script to show the progress bar as (0%) and at the end it should display (100%).
I searched for this in the forms and found they are some threads to show progress bar while copying the file my case is while upgrading an firmware i need to display this.
So you found other threads explaining how to make a progress bar. During the process you need to know how to measure progress in relation to the finished state. The criterion you mention is time, so at any point in time you can define progress as elapsed time divided by 2 minutes.
---------- Post updated at 02:00 PM ---------- Previous update was at 01:54 PM ----------
We can use "pv" pipe viewer to show progress bar but in every distro this "pv" is not default we should install this pv package. Help me to solve this issue without using "pv" option
For that you need to know how to measure progress of the installation process in relation to the finished state. What makes it 20% or 10% or 50% or 80%. You need to define that yourself.
phanivarma,
you've been given multiple hints already and you keep asking the same question.
what is there in the previous posts that is not clear to you?
Please be specific.
hello all
i need quick help
i need to write program in c ,which ll use process and fork() .the program must wait user to enter number each 1 second
and add it to the previous entered value
as seen
1: Enter value?1
2: Enter value? 3
5: Enter value?9
14: Enter value?