I added exit 1 whenever there was a fail to fix the bug when the meter connection failed. I don't know if you want to keep the logs this way or the exit 1 or 2. You may refactor and do that completely differently. The main fix was in test_meter_connection.sh on line 23
I added exit 1 whenever there was a fail to fix the bug when the meter connection failed. I don't know if you want to keep the logs this way or the exit 1 or 2. You may refactor and do that completely differently. The main fix was in test_meter_connection.sh on line 23
lftp_output=$(lftp -u $USERNAME,$PASSWORD -e "set net:limit-rate $bandwidth_limit; ls; bye" $meter_ip)
changed it to ls from pwd
More testing would need to be done to see if that change was the only change that fixed the bugs.