Any way to force command line terminal to control a Mac?
It seems like you want the ability to enter commands using the mouse and keyboard when the mouse and keyboard are unavailable, which is sorta odd.

Anyway, I can think of a few ways to prod your computer into doing something without the mouse and keyboard.


A Griffin PowerMate. Set it to open Terminal or run a script when you press the button.
Do Something When. Set it to run a script when a specific USB flash drive (or similar) is inserted.