Guide to writing a shutdown script on a network using applescript

Applescript (and any other mac scripting applications) have a flaw when it comes to ssh scripts. They are missing a vital ssh-askpass hidden system file that can only be created in terminal. This file can be created using this guide: http://discussions.apple.com/thread.jspa?messageID=12896463&tstart=0
After you have followed the steps in these guides to restore ssh-askpass, open applescript and type in "do shell script 'ssh -t -t computer@server' password 'insert password here' with administrator privileges"
"do shell script 'shutdown -h now' password 'insert password here' with administrator privileges" This script can now be saved as an application and distributed over your wireless network for remote shutdown.

Imac 3.06 GHz i3, Mac OS X (10.6.6), 4 GB Ram, 500 GB internal memory

Posted on Jan 8, 2011 9:34 PM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Guide to writing a shutdown script on a network using applescript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.