User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 456,448 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,675 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 497 | Replies: 0
Reply
Join Date: Oct 2007
Posts: 8
Reputation: sopel39 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sopel39 sopel39 is offline Offline
Newbie Poster

dont know how to do it

  #1  
Oct 31st, 2007
Hi

My problem is that i need to measure given command statistics (time, mem, etc) with shell script
My script must basically do two things:
1. Measure overall command statistics (it is total time, maximum memory use during runtime, etc)
2. Measure command statistics in given periods of time during it's run (once a x seconds)
Then i have few questions:
1. what is the best method for checking command statistics during runtime (for example ps returns process time in seconds, but i need better resolution (are jeffes realible))
2. How to make gathering data during run and after that possible. my idea is that i test given command overall statistics with time command, and use some other command to test statistics during its runtime, but...
how to detect that command finished?
let's say that i use time for overall statistics, i have to do something like that
[time given_command...] &
part_of_script_testing_given_command_during_runtime
how to get pid of [time given_command...] in the main script?

and if you know some examples of such script, can you give some links?

if you know please help thx
Charles
Last edited by sopel39 : Oct 31st, 2007 at 8:50 pm. Reason: forgot about smthng
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Shell Scripting Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Shell Scripting Forum

All times are GMT -4. The time now is 1:54 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC