简体   繁体   中英

How to know if process died

I want to determine if some process/app is crashed and if so, run another application (made on automator that restarts all running apps).

How can I check if some specific process is still running? Maybe i can use the app ID, but first i need to have access to the application status.

If you forked it yourself, you can have the parent monitor it. Otherwise, see here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM