| while true; do | |
| # Get the current external IP address | |
| ip=$(curl -s -X GET https://checkip.amazonaws.com) | |
| time=$(date "+%Y/%m/%d-%H:%M:%S") | |
| echo "$time: $ip" | |
| # Wait 15 minutes before checking again | |
| sleep 900 | |
| done | |
| while true; do | |
| # Get the current external IP address | |
| ip=$(curl -s -X GET https://checkip.amazonaws.com) | |
| time=$(date "+%Y/%m/%d-%H:%M:%S") | |
| echo "$time: $ip" | |
| # Wait 15 minutes before checking again | |
| sleep 900 | |
| done | |