The question is as follows:

I would like to have one file (Ruby) at the start of which a terminal will open in which you can write a message or simply launch some other program.

Maybe someone already faced this task ...

    3 answers 3

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

      +1 five

      exec([env,] command... [,options]) 

      Given external command.

      • could just add a comment. - Axifive
       class String def pr puts self self end end # 'qwerty'.pr class String def eval Kernel.eval self end end # '`ping`'.eval. # encode("windows-1251").pr.force_encoding("cp866").pr # '`ls`' # '`dir`' # '`ruby -v`' # '`whoami`' # '`echo "hello world"`' # '`php --ini`' # '`curl`'

      enter image description here