0

I need to write a simple script to run in the background all the time. And its job is to just monitor one form of process say htop process. Say if htop porocess is being trigger or ran, then do something , and when that process exit, also do something. I manage to use while loop in my script to constantly monitor this process in the backgronud. And I have check the cpu usage is around 1.4 %. Now i am not sure if that is bad. I was wondering if anyone has other way to do this. thanks

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.