how to embed a linux bash terminal inside ruby on rails web page?
how to embed a bash prompt/terminal inside ruby on rails web page?
how to exec开发者_高级运维ute a linux command from the web page, and get the output of the ommand?
You must be looking for answers in this question: Terminal on the web browser?
I myself found the right references there.
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, such as a Java Applet, and include that in the page.
精彩评论