Redirect binary output from file output to standard output

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

# checking that the files exist and other stuff

mkfifo myfifo

ThatBinary <( ... ) myfifo &

cat myfifo

Bash, "". - , . fifo. , .

? ? ( ), , .

+4
1
ThatBinary <(...) /dev/stdout
+3

All Articles