• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Deactivate-reactivate mac file sharing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Deactivate-reactivate mac file sharing
      • From: Cameron Hayne <email@hidden>
References: 
 >Deactivate-reactivate mac file sharing (From: Jay Louvion <email@hidden>)

  • Prev by Date: How to mount a volume?
  • Next by Date: Re: Deactivate-reactivate mac file sharing
  • Previous by thread: Deactivate-reactivate mac file sharing
  • Next by thread: Re: Deactivate-reactivate mac file sharing
  • Index(es):
    • Date
    • Thread