I have a program which I want to debug gdb. And I want to call a second program to redirect the output to the first program. How this is done in gdb.
I tried it like that:
run -2 < $(python seconde.py)
But that does not work :(
The solution is: run $(python seconde.py)
-2 was part of the answer, and how the actual answer you have posted can work without it.
prog -2 < $(python seconde.py)orprog -2 <(python seconde.py)?