|<?xml version="1.0" encoding="UTF-8"?>|
|<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"|
Write this to
Make sure it has the correct rights:
sudo chown root:staff /Library/LaunchDaemons/prehensile.networkwatcher.plist
Launch the daemon
sudo launchctl load -w /Library/LaunchDaemons/prehensile.networkwatcher.plist
Hey @GabLeRoux I'm trying to get something like this to work -- I've adjusted the plist file a bit with my own paths, put it in the LaunchDaemons folder, changed the rights, and launched it.
I figure it should run if I turn off and on Wifi, (I think?), but it doesn't .
Any thoughts on how I can get this to work?
// Figured this out - had a line in my .py script that was causing an error because I assumed the location of a reference file was relative to the .py location, but instead the script was running from the /Library/LaunchDaemons folder.