If I have a long-running executable producing output - like make
- piped into another executable, does the second executable get called once or repeatedly?
make | my_exec
I would accept a link explaining in depth how pipes work
If I have a long-running executable producing output - like make
- piped into another executable, does the second executable get called once or repeatedly?
make | my_exec
I would accept a link explaining in depth how pipes work
The second executable is called once. It keeps reading the input until the first executable stops.
pipes basically just connect the STDOUt of one process to the STDIN of the next process.