0

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 :(

  • Outside of gdb, how would you run the program? prog -2 < $(python seconde.py) or prog -2 <(python seconde.py)? – Mark Plotnick Dec 30 '15 at 2:02
0

The solution is: run $(python seconde.py)

  • Please edit your question to respond to the clarifying question Mark Plotnick asked yesterday.  Please edit either the question or the answer to explain why you thought -2 was part of the answer, and how the actual answer you have posted can work without it. – G-Man Dec 31 '15 at 4:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.