The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
To reduce execution time Sreejith_VK Shell Programming and Scripting 4 05-13-2008 02:49 AM
specifying an execution time VGR UNIX for Advanced & Expert Users 7 03-19-2008 05:32 AM
last execution time cubs0729 UNIX for Dummies Questions & Answers 1 01-20-2006 08:45 PM
Retrieving the execution time of a completed command marina UNIX for Dummies Questions & Answers 2 09-06-2005 04:21 PM
execution time ramki_rk High Level Programming 2 08-27-2003 09:23 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-02-2008
hashin_p hashin_p is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 5
command execution time

Hi all,

I want to display a progressbar depending upon the completion status of a command. I am coding from scratch as I dont want to use in place code. so Is there anyway of getting the progress of a command in percentage or in any other units while its running , is it possible using the top command?

for example I am using command xyz which takes A time to complete
so if I fork the xyz , A/100* (something ) is complete every second , is it possible to find that something?

thanks in advance

Cheers,
Hashin
  #2 (permalink)  
Old 07-02-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
It depends on what the command is, and what it's doing, and whether you can measure its progress in some way.
  #3 (permalink)  
Old 07-03-2008
hashin_p hashin_p is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 5
Quote:
Originally Posted by Annihilannic View Post
It depends on what the command is, and what it's doing, and whether you can measure its progress in some way.
Is it not possible to do a generic function which works for all commands?
  #4 (permalink)  
Old 07-03-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
And how would this generic function predict how long a process is going to take?
  #5 (permalink)  
Old 07-04-2008
hashin_p hashin_p is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 5
Quote:
Originally Posted by Annihilannic View Post
And how would this generic function predict how long a process is going to take?
I dont know .. I want to know so I posted this thread
  #6 (permalink)  
Old 07-06-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
Well, in that case, the answer is that it's virtually impossible. Sorry!
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0