Re: [NewB] calling shell from ObjC within a PreferencesPane
Re: [NewB] calling shell from ObjC within a PreferencesPane
- Subject: Re: [NewB] calling shell from ObjC within a PreferencesPane
- From: Sherm Pendley <email@hidden>
- Date: Tue, 31 Oct 2006 08:59:00 -0500
On Oct 31, 2006, at 8:24 AM, Yvon Thoraval wrote:
the basic way to start the server using the terminal being :
> sudo launchctl start net.sourceforge.leafnode
then my question is how could i call launchdctl from ObjC ?
NSTask
also i will have to open a window for the user to authentificate
No you won't - the authentication framework will pop up a window
automatically if needed. See:
<http://developer.apple.com/documentation/Security/Conceptual/
authorization_concepts/index.html>
<http://developer.apple.com/documentation/Security/Reference/
authorization_ref/index.html>
this server as process to be put in daily crontab
I thought you said it was a daemon? Make up your mind.
, i know how to use the crontab under shell but how from ObjC.
There's no programmatic API that I know of. Just use NSTask to run
the shell command.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden