I have my own binary code that stubbornly takes two files as an argument, first both input and second as output. I would like to
- build the first argument without creating a temporary file
- make a binary entry in stdout instead of the output file (second argument)
I solved the first problem with <(...), but not sure about the second argument.
I wrote the following script, which looks like everything was as expected:
FILE1=$1
FILE2=$2
mkfifo myfifo
ThatBinary <( ... ) myfifo &
cat myfifo
Bash, "". - , . fifo. , .
? ? ( ), , .