Created
June 20, 2023 14:33
-
-
Save bartvdbraak/4dd72114d5152d1561b9ed758a14dde4 to your computer and use it in GitHub Desktop.
Quick one-liner that will print any changes of the public IP of your machine
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
while true; do result=$(curl -s ifconfig.wearetriple.com); if [[ "$result" != "$previous_result" ]]; then echo "$(date) $result"; previous_result=$result; fi; sleep 1; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment