LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   View Progress or Timer of processes !! (https://www.linuxquestions.org/questions/programming-9/view-progress-or-timer-of-processes-674238/)

arunabh_biswas 10-04-2008 01:50 PM

View Progress or Timer of processes !!
 
Dear Experts,

As a inchange of server tasks in my company, I running administrative commands and scripts.

During doing all these tasks, inbetween I wanted to perform other importent tasks but I'm not sure that the commands and scripts which used to run will take how much time to complete.
I want that when I perform any task by running command(s) or scripts, a timer or progress should display in the screen (i.e. in % or remaining time format). This will help me to figure out that how long the running command or script will take time which will help me to perform other tasks inbetween. I couldn't figure out the solution.

pls help me out to resolve the problem.

zmanea 10-04-2008 02:18 PM

You could email yourself when the job is done if you are running the job from the command line, example below.

ping -c 5 google.com && echo "The job is done" | mail -s "Job Status" me@mydomain.dom &

romashka 10-04-2008 03:58 PM

in addition, you may insert something like 'echo "step 5 finished"' between some parts of your scripts,
and if they do some processing on files - you can pipe files through programs like 'bar' or 'pv'.
http://www.theiling.de/projects/bar.html
http://www.ivarch.com/programs/pv.shtml


All times are GMT -5. The time now is 05:51 PM.