开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜