Timeline for Using grep in conditional statement in bash
Current License: CC BY-SA 3.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 19, 2021 at 11:01 | history | protected | dr_ | ||
| Apr 12, 2016 at 8:29 | vote | accept | CircularRecursion | ||
| Apr 12, 2016 at 8:29 | comment | added | CircularRecursion | Good idea - I will work on adding that. | |
| Apr 10, 2016 at 0:03 | comment | added | cas |
if i were you, i'd run this only when the internet network interface goes up rather than every 5 minutes from cron. or, at least, cache "$IP" in a file somewhere (perhaps /var/tmp/icanhazip) and if it hasn't changed since the last run, exit 0 before doing anything else. you don't need to update your DDNS entry every 5 minutes, only when your IP address changes.
|
|
| Apr 9, 2016 at 19:31 | comment | added | CircularRecursion |
I've slightly modified it. I'm using a DNSimple-Domain-Token which doesn't need the LOGIN variable.
|
|
| Apr 9, 2016 at 19:10 | comment | added | Mikel |
Does your script work if you remove the if check and always echo to the log file? dnssimple shows a $LOGIN before $TOKEN, but you're missing that. Maybe that's causing things to fail?
|
|
| Apr 9, 2016 at 14:05 | answer | added | Vikyboss | timeline score: 10 | |
| Apr 9, 2016 at 13:54 | answer | added | Jeff Schaller♦ | timeline score: 8 | |
| Apr 9, 2016 at 13:03 | answer | added | Guido | timeline score: 112 | |
| Apr 9, 2016 at 12:27 | review | First posts | |||
| Apr 9, 2016 at 12:36 | |||||
| Apr 9, 2016 at 12:27 | history | asked | CircularRecursion | CC BY-SA 3.0 |