I have a process that runs occasionally but often errors and uses high amounts of CPU. I'd like to monitor the process for high CPU usage which is easy enough, but if the process isn't running it can't be found and I get an error to this effect.
Is there a way to only monitor a process if the process is running - maybe pausing the process in the meantime or something like that?
Thanks, Paul
Add comment