My problem is when I read from /dev/fd/3
with cat
the bash file will hang. I'm hoping for a way to read from the file descriptor in the background so I can continue on to the rest of the shell code.
#hangs here. pipe file descriptor 3 to yummy-stdin.pl
cat /dev/fd/3 | yummy-stdin.pl
./this-shall-never-run.pl
I've tried:
cat /dev/fd/3 | yummy-stdin.pl & this-shall-never-run.pl;
The problem with the above is while it's processing this-shall-never-run.pl, it will stop reading from the file descriptor. When it's finished, it will continue reading... but this isn't what I want.