Hi,
Can someone advise what "generic" command can I use to show statistics of a process or a running script/process?
For example, I want to know how many hours/minutes it's taken to run or has been running, how much CPU it used and how much memory it used or uses.
I want to be able to do run the command for both Solaris and Linux.
I found several suggestion on how long a process has been running by checking the timestamp in /proc and doing a calculation with the current time, but it does not show how to do time arithmetic
Any advice much appreciated. Thanks.