Skip to content

Instantly share code, notes, and snippets.

@samuelcolvin
Created August 21, 2019 09:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelcolvin/0a6021778925d1b8d1c9248a7d189076 to your computer and use it in GitHub Desktop.
Save samuelcolvin/0a6021778925d1b8d1c9248a7d189076 to your computer and use it in GitHub Desktop.
#!/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