Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deactivate-reactivate mac file sharing



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: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >Deactivate-reactivate mac file sharing (From: Jay Louvion <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.