I'm looking for a process monitor that produce an easy to parse output to stdout. Is there any tool like that in unix? Something like
top, but mean to be consumed by another program.
To be more specific, let's say i want to create a gui program for process monitoring. So, I need to get a real time process information (maybe every second). Do I need to call
ps every second, or maybe there's a better alternative?