Last active
October 23, 2020 06:21
-
-
Save ety001/01b3f027f73cc8215a335048b3d3adc5 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
#!/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 |
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 | |
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