开发者

how to embed a linux bash terminal inside ruby on rails web page?

开发者 https://www.devze.com 2023-01-19 15:25 出处:网络
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

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

精彩评论

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