I'm trying to figure out how to get two shell scripts to run automatically. One script to run when the mac is turned on. And another to run when the computer is about to shut down.
I'm guessing for launching, I should use launchd? Or is that overkill? I just need to run a self contained script, no variables being passed in. If so, any good references?
I can't seem to find a simple solution for running a script when the computer is shutting down. Any suggestions?
Thanks.