Re: Launching agents .
Re: Launching agents .
- Subject: Re: Launching agents .
- From: Jerry Krinock <email@hidden>
- Date: Fri, 12 Jun 2009 05:00:54 -0700
On 2009 Jun 12, at 03:39, rethish wrote:
what is the reason for this behaviour?
Actually, we answered this for you last week....
http://www.cocoabuilder.com/archive/message/cocoa/2009/6/4/238136
I'll explain in more detail. The problem you are seeing is that a
newly-installed launchd plist file or "task" is not automatically
"loaded". In order to "load" it, you must run the launchctl program.
launchctl is a unix program, accessible from the command line, and
unfortunately there appears to be no equivalent library function. At
least I've never been able to find one. Therefore, you must create an
NSTask to run launchctl and launch the NSTask.
Same thing if you want to "unload" a task.
In Xcode's menu, click Help > Open man page... and then enter
"launchctl" to learn about launchctl.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden