Kill a process called using open3 in ruby
问题 I'm using a command line program, it works as mentioned below: $ ROUTE_TO_FOLDER/app < "long text" If "long text" is written using the parameters "app" needs, then it will fill a text file with results. If not, it will fill the text file with dots continuously (I can't handle or modify the code of "app" in order to avoid this). In a ruby script there's a line like this: text = "long text that will be used by app" output = system("ROUTE_TO_FOLDER/app < #{text}") Now, if text is well written,