how to embed a bash prompt/terminal inside ruby on rails web page?
how to execute a linux command from the web page, and get the output of the ommand?
how to embed a bash prompt/terminal inside ruby on rails web page?
how to execute a linux command from the web page, and get the output of the ommand?
Why would you do that? :))
It's simple though, since ruby has %x[]
output = %x[#{input}]
The simplest approach would probably be to take a preexisting [embeddable SSH implementation][1], such as a Java Applet, and include that in the page.
[1]: http://www.google.co.uk/search?hl=en&source=hp&q=java applet ssh