So my question is if I can somehow send data to my program and then send the same data AND its result to another program without having to create a temporary file (in my case ouputdata.txt). Preferably using linux pipes/bash.
I currently do the following:
cat inputdata.txt | ./MyProg > outputdata.txt
cat inputdata.txt outputdata.txt | ./MyProg2
Choice 1 – fix
MyProgto write the merged output from the input and it’s own output. Then you can do this.Choice 2 – If you can’t fix
MyProgto write both input and output, you need to merge.