Run shell script on Linux box from a shortcut/app in Android?
Posted
by
melat0nin
on Super User
See other posts from Super User
or by melat0nin
Published on 2012-10-16T17:35:32Z
Indexed on
2012/10/16
23:04 UTC
Read the original article
Hit count: 171
I have an Ubuntu box which runs XBMC, which crashes occasionally. Since I have no keyboard connected,I have to SSH in, kill xinit, then restart it. I was wondering if there's an elegant way of doing this from my Android tablet, so I don't have to go to my desktop PC.
I've used ConnectBot and can log in, but typing is laborious, even using the edit keys to scroll back up through the buffer. It seems as though it should be possible to script this so that I can execute a shortcut, or at least select a predefined script to be executed.
This would seem to have plenty of applications, and there could be a site of scripts - restart webserver, reboot, email logs etc
© Super User or respective owner