gandyn
gandyn copied to clipboard
Return value $? = 0 with Connection Refused
Hi, I know when exactly my IP address change but sometimes gandyn can't connect to my DNS area. $ tail gandyn.log An error occured retrieving public IP address : URLError(ConnectionRefusedError(111, 'Connection refused'),)
I want to make a script to run again gandyn when it display ConnectionRefused but the return value is OK $ echo $? 0
Why did I get '0' as no error when gandyn.log displays 'ConnectionRefusedError' ?