I want a script (bash/zsh/ruby/...) to run at boot time in OS X. What's the most simple way to do this, without messing with xml/plist files, and preferably not needing to make a meta AppleScript.
|
feedback
|
|
MacOS X uses Vixie cron, which has special meta tags for launching at reboot time. See the man page for the file format. something like:
in your crontab would work. I'm not sure that this a better solution than launchd, you probably have more meta tools that look at launchd than cron. | |||||||
feedback
|
|
In case you change your opinion:
Store as | |||||||||||
feedback
|
|
There are also Login Hooks if you would prefer the script to run (as root) when a user logs in rather than when the machine is booted. | |||
|
feedback
|
|
I just wrote an article on running a Bash script as root from boot. Don't forget the RunAtLoad command. http://powercycled.wordpress.com/2012/04/25/spoof-mac-address-from-boot-using-launchd/ | |||
|
feedback
|
