Created
September 14, 2016 12:22
-
-
Save HakimCassimallyBBC/e6d4d88dd20b03eaf2514124505d78a4 to your computer and use it in GitHub Desktop.
multicurl attempt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FIFO=$(mktemp /tmp/multicurl.XXXXX) | |
echo FIFO=$FIFO | |
for arg in "$@" | |
do | |
curl $arg > $FIFO & | |
done | |
# this doesn't work as: | |
# - both are noisy | |
# - both streams overlap (want line buffered) | |
# - ctrl-c leaves the curls running in background |
Author
HakimCassimallyBBC
commented
Sep 15, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment