retrieving execution time for process
hii
how can i know wots the time taken by a process for completely executing .. suppose i have a process i wanna find its time of execution .. i tried to work around /proc file system but it maintains stuff abt processes in process table alone .. so when a process has exited the system .. how can i trap it .. that how much time it stayed in process table ?
i was able to find out time slices recieved and all .. also able to find wots the memory occupied .. but unable to find wots the time of execution for one process .. coz /proc only maintains record of processes in table
any idea ..
and yehh one more thing .. is it possible to do network programming in shell ? i think maybe in c shell ? dont know ... i wanna send the info collected from my system abt processes and meminfo and loadbalance ... to another system acroos network .. is it possible via shell programming ??
and yehh if i eventually use perl .. can i usee it like shell .. i mena can i use commands like to read from proc directly ?
thanks please reply .. urgent
|