Created
March 28, 2020 14:45
-
-
Save Hermann-SW/042bdaf97c594f36cb2eb422fe2a8d5f to your computer and use it in GitHub Desktop.
helper code for dead-man_button.c (https://esp32.com/viewtopic.php?f=19&t=14803&p=57338#p57338)
This file contains hidden or 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 | |
while true | |
do | |
fin_wait2=`netstat 2>/dev/null | grep 1337` | |
if [[ "$fin_wait2" = "" ]] | |
then | |
sudo ./dead-man_button | |
else | |
sudo ./dead-man_button 1338 | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment