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 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 selected in "Options...").

regards
Georg
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to