Re: Running Shell Script from Cocoa Application
Re: Running Shell Script from Cocoa Application
- Subject: Re: Running Shell Script from Cocoa Application
- From: Jaime Magiera <email@hidden>
- Date: Sun, 7 Oct 2007 09:15:30 -0400
On Oct 7, 2007, at 5:09 AM, Daniel Dalquen wrote:
That's what I want, too, and I am using AuthorizationServices. I'm
just not sure, whether I am using it correctly... I need to copy a
lauchd plist file to /Library/LaunchDeamons, unload an existing
launchd config and load the new one. So, in my app I call an
installer tool with AuthorizationExecuteWithPrivileges() and the
installer then calls setuid(0) before doing the things described
above. Is that correct or how should I do it better?
That's what I did for a tool that loads/unloads a kext (controlled
via dashboard widget), and it works well.
Jaime Magiera
Sensory Research Network
http://www.sensoryresearch.net
_______________________________________________
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