Re: Deactivate-reactivate mac file sharing
Re: Deactivate-reactivate mac file sharing
- Subject: Re: Deactivate-reactivate mac file sharing
- From: Axel Luttgens <email@hidden>
- Date: Wed, 15 Nov 2006 16:13:30 +0100
On 15/11/06 14:52, Jay Louvion wrote:
I’m the proud user of Remote Desktop and also a fellow-scripter, so
excuse me in advance if this thread drifts off-topic.
I’m wondering if there is an AS or Terminal command that would allow
me to deactivate the file sharing on a given machine, delay 10 and
then reactivate it.
Assuming file sharing is currently activated, following shell commands
(executed as root) should do the trick:
/bin/kill `cat /var/run/AppleFileServer.pid`
/bin/sleep 10
/usr/sbin/AppleFileServer
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden