Hello,
I’m experiencing an issue with our VPN, and the vendor has advised me to run the following script for all Mac users in the company whenever they encounter internet connectivity issues after sleep mode:
ps aux | grep -i ‘forti’ | grep -v ‘grep’ | awk ‘{print $2}’ | xargs sudo kill -9
The vendor suggested this script should be executed every time a user’s device wakes from sleep mode. However, I haven’t been able to implement this effectively, and no one seems to know the best way to automate this process.
Could anyone assist me in setting up this script to run automatically for all Mac users after sleeping mode?
Thank you very much for your help!