Skip to content

Instantly share code, notes, and snippets.

@truemagic-coder
Created December 14, 2019 18:41
Show Gist options
  • Save truemagic-coder/f671a5b1356d62158f30f6253935d866 to your computer and use it in GitHub Desktop.
Save truemagic-coder/f671a5b1356d62158f30f6253935d866 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "how many seconds?"
read seconds
while [ $seconds -gt 0 ]
do
curl localhost:8080/broadcast/$seconds
seconds=`expr $seconds - 1`
done
@truemagic-coder
Copy link
Author

truemagic-coder commented Dec 14, 2019

chmod +x counter.sh && ./counter.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment