I have some process . How should i know that the process is still processing data or got hanged even though it is showing that it is running in background
I know of a command called truss. how should i use this command and determine
1) process is still processing data
2) process got hanged
in all the cases my process is running in background?
you cannot see if a process is doing something usefull unless the application log ists actions. but u can see if a process is consuming cpu time instead of sleeping. use ps to see if the process is using cpu time
ps -U root -eo pcpu,time,s,pid,comm
^ status see man ps
^total cpu time since process creation
^ actual cpu usage in %