Use named pipes to send input to program based on output
问题 Here's a general example of what I need to do: For example, I would initiate a back trace by sending the command "bt" to GDB from the program. Then I would search for a word such as "pardrivr" and get the line number associated with it by using regular expressions. Then I would input "f [line_number_of_pardriver]" into GDB. This process would be repeated until the correct information is eventually extracted. I want to use named pipes in bash or python to accomplish this. Could someone please