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

上一篇: 如何指示SQLAlchemy在创建时创建SQLite FTS3表

下一篇: 如何在Ruby on Rails网页中嵌入一个linux bash终端?