How to run a terminal command in Ruby file


The question is as follows:

I would like to have one file ( ruby ​​) when launched, a terminal will open in which you can write a message or just run some other program.

Maybe someone else has come across this issue…


There are many ways: one , two , three , four , five (thanks, @Jarto), six .

Scroll to Top