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 ...
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 ...
class String def pr puts self self end end # 'qwerty'.pr class String def eval Kernel.eval self end end # '`ping ru.stackoverflow.com`'.eval. # encode("windows-1251").pr.force_encoding("cp866").pr # '`ls`'.eval.pr # '`dir`'.eval.pr # '`ruby -v`'.eval.pr # '`whoami`'.eval.pr # '`echo "hello world"`'.eval.pr # '`php --ini`'.eval.pr # '`curl ru.stackoverflow.com`'.eval.pr
Source: https://ru.stackoverflow.com/questions/189662/
All Articles