Created
August 21, 2019 09:42
-
-
Save samuelcolvin/0a6021778925d1b8d1c9248a7d189076 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
port=${1:-5001} | |
while true; do | |
until $(curl -q -so /dev/null http://localhost:$port/logs -I && true); do | |
printf . | |
sleep 0.1 | |
done | |
curl -q -s http://localhost:$port/logs | |
for i in `seq 1 10`; do | |
printf '\n' | |
done | |
sleep 2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment