The UNIX and Linux Forums  

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #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