MagicTerminal allows you to remotely send terminal commands to any Mac OS X machine running the MagicTerminal desktop server on the local network.
It allows for multiple simultaneous terminals and auto discovery.
The shell used is bash, commands are executed with the privileges of the user under which the server is running.
A single server machine can run multiple servers for multiple users.
Compared to SSH this is just a different approach, there are both advantages and limitations, discovery is automatic trough Bonjour and authentication is handled by pairing, it should be easier to set up overall.
The MagicTerminal server is also available a MagicPrefs plugin that you can download for free.
Quit applications trough applescript events
- osascript -e 'tell application "FooBar" to quit'
Sleep the machine (other options :log out, shut down, restart)
- osascript -e 'tell application "System Events" to sleep'
Display and get the button pressed in a Cancel/OK dialog
- osascript -e 'tell application "System Events" to display dialog "Foo Bar"'
- say -v Whisper "Hello World"
Force logout directly the hard way
- echo "yourpassword" | sudo -S killall -HUP WindowServer
Run additional instances of the server
- open -nb com.vladalexa.magicterminal
Lock the screen
- "/System/Library/CoreServices/Menu Extras/User.menu/Contents/Resources/CGSession" -suspend