Skip to content

Instantly share code, notes, and snippets.

@ety001
Last active October 23, 2020 06:21
Show Gist options
  • Save ety001/01b3f027f73cc8215a335048b3d3adc5 to your computer and use it in GitHub Desktop.
Save ety001/01b3f027f73cc8215a335048b3d3adc5 to your computer and use it in GitHub Desktop.
#!/bin/bash
LOG_NUM=`docker logs --tail 30 steem_hivemind_seed | grep 'transactions on block' | wc -l`
if [ ${LOG_NUM} -ne 0 ];then
exit 0
else
proxychains /usr/bin/telegram.sh "steem hivemind seed down!"
fi
#!/bin/bash
curl --data-urlencode "text=$1" https://api.telegram.org/bot86****0:AA***8Gs/sendMessage?chat_id=2**2
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment