0

I'm running a little tool to run an action that has a start and end (it's an installer). I don't want to leave things lying around the filesystem (or the launchd config) after the installer runs. If it ever runs again it can re-blessed etc.

Is this the right approach to take for jobs that will only run once?

(also if you're knowledgable, take a look at 11557026, it needs an answer!)

Community
  • 1
  • 1
Joe
  • 46,419
  • 33
  • 155
  • 245

1 Answers1

0

The answer was no, SMJobSubmit is the right thing to use, as per this question: Can SMJobSubmit() be used to execute a privileged helper installed by SMJobBless?

Community
  • 1
  • 1
Joe
  • 46,419
  • 33
  • 155
  • 245