Server Fault is a question and answer site for system and network administrators. 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 a simple python script for manipulating a plist file. Once this file is updated, I'd like to have that same script unload and then load that plist file in launchd. Normally, I'd use launchctl from the command line to do it. I could still do that in the script with the system (or subprocess, if I'm feeling more Python-correct) function, but I was wondering if there's a more "correct" way of doing it via any of the Apple OS X APIs, frameworks, etc. Any ideas or at least pointers of where to look?

FWIW, this is what I'm trying to script up to be sent out to client laptops. It's fairly trivial, but I'm trying to learn more about scripting sysadmin tasks in OS X.


share|improve this question

I created a little pythonic wrapper which can be found on github: It has a little README that should get you started.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.