[launchd-dev] launchd - is my job already loaded?

Jim Correia jim.correia at pobox.com
Fri Feb 27 08:29:01 PST 2009


I have a need for a periodic (in this case, twice per day) per user  
task.

I have written a job file and all works great from the command line  
using launchctl, but I want to set up this task programatically.

Is there an API for launchd/launchctl, or should I just fork+exec  
launchctl to setup my job?

Is there a prettier way to determine if my job is already loaded than  
to exec `launchctl list` and grep the output?

Jim


More information about the launchd-dev mailing list