Is there a way to only execute a command after another is done without a temp file?
I have one longer running command and another command that formats the output and sends it to a HTTP server using curl.
If i just execute
commandA | commandB,
commandB will start
curl, connect to the server and start sending data. Because
commandAtakes so long, the HTTP server will timeout.
I can do what I want with
commandA > /tmp/file && commandB </tmp/file && rm -f /tmp/file
Out of curiosity I want to know if there is a way to do it without the temp file.
mbuffer -m 20M -q -P 100 but the curl process is still started right at the beginning. Mbuffer waits just until
commandAis done with actually sending the data.
(The data itself is just a few hundred kb at max)