I normally redirect STDOUT to another program using:
python -c 'print("HelloWorld")' | ./myprog
I know that I can supply the contents of a file as STDIN for a debugged program in GDB:
(gdb) run myprog < input.txt
However, how can I do something like:
(gdb) run mypprog < python -c 'print("HelloWorld")'
without first having to create a file with the output of python -c '...'?