Screen sharing
James Sentman
james at sentman.com
Tue Oct 29 12:02:14 EDT 2013
On Oct 29, 2013, at 11:27 AM, Hendrik van Eeden <hvaneeden at comcast.net> wrote:
> Isn't there some terminal commands that I can put in a 'do shell script'?
Every so often mine will refuse several connection attempts in a row so first just try again and see. Do you have SSH enabled? You can do a “sudo reboot” from the terminal if you can log in that way and give it a clean restart and see if that gets it back going again.
there are some examples here for how to enable screen sharing from the command line if it’s turned off but otherwise working OK:
http://pivotallabs.com/enabling-os-x-screen-sharing-from-the-command-line/
but I wouldn’t want to try to set that up via a do shell script command, only via SSH at the terminal. The reboot you could do through XTension’s do shell script command though, but you’d need to redirect the password like:
do shell script “echo YourPassword | sudo -S /sbin/reboot"
Thanks,
James
James Sentman http://sentman.com http://MacHomeAutomation.com
More information about the XTensionList
mailing list