LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 10-04-2008, 02:50 PM   #1
arunabh_biswas
Member
 
Registered: Jun 2006
Posts: 88

Rep: Reputation: 15
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.
 
Old 10-04-2008, 03:18 PM   #2
zmanea
Member
 
Registered: Sep 2003
Location: Colorado
Posts: 85

Rep: Reputation: 15
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 &
 
Old 10-04-2008, 04:58 PM   #3
romashka
LQ Newbie
 
Registered: Nov 2003
Location: Ukraine
Distribution: Arch Linux
Posts: 4

Rep: Reputation: 0
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
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
progress view command for linux mpmackenna Linux - General 6 06-17-2008 10:44 AM
Multimedia timer (SMP friendly timer) bigqueso Linux - Kernel 0 03-15-2007 04:49 PM
Any way to view the current processes? alyks Suse/Novell 7 10-18-2004 11:04 AM
How do i view processes and stop them? rid00z Linux - General 2 02-10-2004 05:30 PM
how do i view processes in the console? ShawnD Linux - General 1 07-15-2002 09:04 PM


All times are GMT -5. The time now is 11:27 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration