Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 438
sarav Avatar asked Oct 13 '10 06:10

sarav


2 Answers

You must be looking for answers in this question: Terminal on the web browser?

I myself found the right references there.

like image 102
Ikon Avatar answered Nov 14 '22 23:11

Ikon


Why would you do that? :))

It's simple though, since ruby has %x[]

output = %x[#{input}]
like image 45
glebm Avatar answered Nov 14 '22 22:11

glebm