How to embed linux bash terminal inside ruby ​​on rails web page?

how to insert a bash prompt / terminal inside a ruby ​​site on a rails page?

how to execute linux command from web page and get ommand output?

+7
linux ruby ajax ruby-on-rails
source share
3 answers

You should look for answers in this question: Terminal in a web browser?

I myself found the correct links there.

+2
source share

Why do you need to do this? :))

This is simple because ruby ​​has %x[]

 output = %x[#{input}] 
+1
source share

The simplest approach would probably be to use a pre-existing implementable SSH implementation , such as a Java applet, and enable it on the page.

0
source share

All Articles