[NewB] calling shell from ObjC within a PreferencesPane
[NewB] calling shell from ObjC within a PreferencesPane
- Subject: [NewB] calling shell from ObjC within a PreferencesPane
- From: Yvon Thoraval <email@hidden>
- Date: Tue, 31 Oct 2006 14:24:30 +0100
Hey all,
i'm writing a preferences pane for a light nntp server "LeafNode"
<http://leafnode.sourceforge.net/>.
in order to start this server i'm using a launchd "LaunchDaemons" .
the plist being "/Library/LaunchDaemons/net.sourceforge.leafnode.plist"
the the agent label "net.sourceforge.leafnode".
i know the wat to start/stop yjis server from command line.
however i'd designing a preference pane able to start/stop this
server provided the user authentificate as admin.
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 ?
i know how to call shell script from AppleScript and Ruby but not *
at all * from ObjC.
also i will have to open a window for the user to authentificate, are
they special window/panel for that ?
i said one question , i do have other.
this server as process to be put in daily crontab, i know how to use
the crontab under shell but how from ObjC.
best,
Yvon
_______________________________________________
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