Re: [gentoo-user] ip_change_notifier - empty IP address

2023-06-28 Thread thelma
On 6/28/23 01:23, Paul Colquhoun wrote: On Wednesday, June 28, 2023 5:05:25 P.M. AEST Neil Bothwick wrote: On Tue, 27 Jun 2023 18:49:55 -0600, the...@sys-concept.com wrote: # Query the API to get the current IP address NEW_IP=$(get_ip_address) # Retry if the IP address is empty retry_count=0

Re: [gentoo-user] ip_change_notifier - empty IP address

2023-06-28 Thread Matt Connell
Not quoting anything because I'm just making a general reply, to the general problem that you're generally trying to solve. Generally. You really should be using DNS for what you're trying to do, one way or the other. Reverse DNS, when set up properly, will always return the appropriate IP

Re: [gentoo-user] ip_change_notifier - empty IP address

2023-06-28 Thread Paul Colquhoun
On Wednesday, June 28, 2023 5:05:25 P.M. AEST Neil Bothwick wrote: > On Tue, 27 Jun 2023 18:49:55 -0600, the...@sys-concept.com wrote: > > # Query the API to get the current IP address > > NEW_IP=$(get_ip_address) > > > > # Retry if the IP address is empty > > retry_count=0 > > while [[ -z

Re: [gentoo-user] ip_change_notifier - empty IP address

2023-06-28 Thread Neil Bothwick
On Tue, 27 Jun 2023 18:49:55 -0600, the...@sys-concept.com wrote: > # Query the API to get the current IP address > NEW_IP=$(get_ip_address) > > # Retry if the IP address is empty > retry_count=0 > while [[ -z "$NEW_IP" && $retry_count -lt 3 ]]; do > sleep 1 > NEW_IP=$(get_ip_address)

Re: [gentoo-user] ip_change_notifier - empty IP address

2023-06-27 Thread thelma
Thelma On 6/27/23 13:23, Neil Bothwick wrote: On Tue, 27 Jun 2023 11:48:16 -0600, the...@sys-concept.com wrote: On 6/27/23 11:04, Neil Bothwick wrote: On Tue, 27 Jun 2023 10:34:22 -0600, the...@sys-concept.com wrote: I run this little script to notify me when the IP changes. However

Re: [gentoo-user] ip_change_notifier - empty IP address

2023-06-27 Thread thelma
On 6/27/23 13:23, Neil Bothwick wrote: On Tue, 27 Jun 2023 11:48:16 -0600, the...@sys-concept.com wrote: On 6/27/23 11:04, Neil Bothwick wrote: On Tue, 27 Jun 2023 10:34:22 -0600, the...@sys-concept.com wrote: I run this little script to notify me when the IP changes. However at time to

Re: [gentoo-user] ip_change_notifier - empty IP address

2023-06-27 Thread Neil Bothwick
On Tue, 27 Jun 2023 11:48:16 -0600, the...@sys-concept.com wrote: > On 6/27/23 11:04, Neil Bothwick wrote: > > On Tue, 27 Jun 2023 10:34:22 -0600, the...@sys-concept.com wrote: > > > >> I run this little script to notify me when the IP changes. However > >> at time to time the file:

Re: [gentoo-user] ip_change_notifier - empty IP address

2023-06-27 Thread thelma
On 6/27/23 11:04, Neil Bothwick wrote: On Tue, 27 Jun 2023 10:34:22 -0600, the...@sys-concept.com wrote: I run this little script to notify me when the IP changes. However at time to time the file: "old_ip.txt" is being populated with an empty line "no IP address" What could be causing it?

Re: [gentoo-user] ip_change_notifier - empty IP address

2023-06-27 Thread Neil Bothwick
On Tue, 27 Jun 2023 10:34:22 -0600, the...@sys-concept.com wrote: > I run this little script to notify me when the IP changes. However at > time to time the file: "old_ip.txt" is being populated with an empty > line "no IP address" > > What could be causing it? > > > #!/bin/bash > > #

[gentoo-user] ip_change_notifier - empty IP address

2023-06-27 Thread thelma
I run this little script to notify me when the IP changes. However at time to time the file: "old_ip.txt" is being populated with an empty line "no IP address" What could be causing it? #!/bin/bash # Replace "YOUR_EMAIL" with your actual email address EMAIL="your_em...@gmail.com" # File to