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 execute 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}]
最简单的方法可能是采用预先存在的嵌入式SSH实现,如Java Applet,并将其包含在页面中。
链接地址: http://www.djcxy.com/p/3188.html