Ruby allows you to execute commands • Nix terminal through System , Exec , Irb , etc., but I can’t save a session between commands. That is, I open the console application in it through, for example, exec("./app") , but I cannot execute internal commands, as I would have done through a normal session /bin/sh .
# ./app app> do_something Here this do_something and "falls off".
Thanks who will respond, maybe the library knows about this topic, I’m glad about everything.
UPD: That is, I have ./app and inside it I need to perform a series of actions by catching the output of information and send commands further on its basis. And the problem that I encounter is when the program reaches the application launch command, it redirects me to the terminal and is interrupted (waiting for the current program to finish), and I need to execute more commands inside the opened ./app .