•
•
•
•
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
![]() |
•
•
Join Date: Oct 2007
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb Shell Scripting Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- I want to get started learning a programming language (Computer Science and Software Design)
- I dont want to hack but... (Techies' Lounge)
- Computer powers up, does not boot (Troubleshooting Dead Machines)
- Clickable icons in IE6 v. 2.60 dont work (Web Browsers)
- Internet explorer new windows dont open (Web Browsers)
- Outlook Takes A Few Minutes To Open (Windows NT / 2000 / XP / 2003)
Other Threads in the Shell Scripting Forum
- Previous Thread: su - postgres within shell script
- Next Thread: stumped need a start


Linear Mode