I am trying to understand how piping works and am stuck at this point.
A log file is being streamed and its output is being piped to pigz. What I am trying to do is, redirect the pigz content to a python script as stdin.
I can't figure out how to redirect the data to script
This currently works:
./customread file_name | pigz -dc
This shows the log contents to stdout, how do I pipe it to the script from here?
python script.py < `./customread file_name | pigz -dc`
I want to redirect the data as it comes in..