![]() Tail /var/log/system.log for error messages. Run launchctl load ~/Library/LaunchAgents/ and log out/in to test (or to test directly, run launchctl start ) Replace the after the Program key with your desired command (note that any script referenced by that command must be executable: chmod a+x /path/to/executable/script.sh to ensure it is for all users). Updated 5 for OSX El Capitan and newer (credit to José Messias Jr): Here's the specific plist file to run a script at login.
0 Comments
Leave a Reply. |