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

1
  • Outside of gdb, how would you run the program? prog -2 < $(python seconde.py) or prog -2 <(python seconde.py)? Commented Dec 30, 2015 at 2:02

1 Answer 1

0

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

1
  • 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. Commented Dec 31, 2015 at 4:48

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.