When working with gdb, I often need to redirect the output of a command to the process in gdb. However, I can't do ./script | run
in gdb so I often have to pipe the output to a file or named pipe and pipe that file/pipe with run < file
.
Is there a way to "left-pipe" the output?
gdb
(GNU Debugger? still not familiar with it), but maybe this should work for you,run <(./script)
? using process substitution – αғsнιη May 16 '21 at 06:01left | right
. Doingrun <(cmd)
doesn't work, and 4521015 is piping a file likerun < file
and not a process stdout. – ChocolateOverflow May 16 '21 at 09:20