27 Feb
2009
27 Feb
'09
4:29 p.m.
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