An application usually deals with things in a sequential way, more like a regular cooking recipe: 1, 2, 3, etc.
In this chapter, we’ll see how we can break this circle and interact with the system in a more natural way, either by executing commands in the terminal (pretty much as a normal user would) or launch asynchronous processes, which do what they have to in the background but still maintain contact with our main application.
13.1 Execute terminal command
Problem
I want to execute some terminal command and get the result.
Solution
First, we create our Process and Pipe ...