[OT] Re: enable/disable/check file Sharing from code

2009-09-21 Thread Alastair Houghton
On 21 Sep 2009, at 17:56, Georg Seifert wrote: This is not exactly my problem. I can start file sharing with just calling "/usr/sbin/AppleFileServer". My question was how to to it that would also check the checkbox and respect the settings in the sharing pane (enable afs, smb and ftp it is

Re: enable/disable/check file Sharing from code

2009-09-21 Thread Georg Seifert
Is there a way to enable and disable file sharing from code. Almost all background services are universally controlled by launchd. See man launchctl, launchd, et al. This is not exactly my problem. I can start file sharing with just calling "/usr/sbin/AppleFileServer". My question was ho

Re: enable/disable/check file Sharing from code

2009-09-21 Thread James Bucanek
Georg Seifert wrote (Monday, September 21, 2009 2:50 AM +0200): Is there a way to enable and disable file sharing from code. Almost all background services are universally controlled by launchd. See man launchctl, launchd, et al. -- James Bucanek

[OT] Re: enable/disable/check file Sharing from code

2009-09-21 Thread Alastair Houghton
On 21 Sep 2009, at 10:50, Georg Seifert wrote: Is there a way to enable and disable file sharing from code. I only found this: /usr/sbin/AppleFileServer It seems to work but if I use it, the Sharing prefPane does not show the enabled state. And is there a way to check if file sharing is run

enable/disable/check file Sharing from code

2009-09-21 Thread Georg Seifert
Hi, Is there a way to enable and disable file sharing from code. I only found this: /usr/sbin/AppleFileServer It seems to work but if I use it, the Sharing prefPane does not show the enabled state. And is there a way to check if file sharing is running? Are there recommended approaches to s