OS X shell scripts

1 post / 0 new
Offline
Last seen: 17 years 4 months ago
Joined: Dec 20 2003 - 10:38
Posts: 89
OS X shell scripts

I've recently discovered the power of shell scripts and I'm learning to write them for automating some UNIX commands I use daily.

I would really like to make these scripts as seamless as possible by having them execute as the system boots before the OS X login window is even shown. Does anyone know how to set scripts to execute this early?

My second question is as follows, if I write a script that would normaly require a sudo command and password in the Terminal do I need to include the password in the script? This goes along with the first question. If a write a script requiring root access and I want it to execute before a user could even log in how does the script get permission to launch?

Thanks for any help or leads.