Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a script with python that basically ping all servers found in my lists. I need this script to be run on startup with sudo permission.

So the question is, How do you run the script on startup with sudo permission

share|improve this question

Check this: Creating Launch Daemons and Agents. These could be done with root privileges (launchd runs as root).

What I do is to put such scripts in /Library/StartupItems; check this: Startup Items. These are run by root authority (see Startup Item Permissions at the bottom). This however, is the old way to do such things. Still works in Lion, though.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .