Run command every time MACs computer go to sleep mode/wake up or login.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ10-11-2024 09:35 AM
Hello,
Please your help.
I need to run for 30 MAC (only MACs) computers this command:
ps aux | grep -i 'forti' | grep -v 'grep' | awk '{print $2}' | xargs sudo kill -9
I would like the MAC computers to run this command every time they go to sleep mode/wake up or login.
How can I do it please?
Thanks
Labels:
- Labels:
-
Deployment and Patching
0 REPLIES 0
![](/skins/images/1519CD93B86343CA58368DF3BFFB373D/responsive_peak/images/icon_anonymous_message.png)
![](/skins/images/1519CD93B86343CA58368DF3BFFB373D/responsive_peak/images/icon_anonymous_message.png)