Update transmit.py handle success

pi-sensors-auto-gps
Alan Johnston 2 days ago committed by GitHub
parent 6a4f538949
commit 4612435c8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -399,6 +399,9 @@ if __name__ == "__main__":
query = ["sudo", "systemctl", "is-active", "gpsd.socket"]
try:
result = subprocess.run(query, capture_output=True, text=True, check=True)
print(f"Command run was: {query}")
gpsd_status = result.stdout
print(f"Output of the command (stdout): {gpsd_status}")
except subprocess.CalledProcessError as e:
# print(f"Command failed with return code: {e.returncode}")
print(f"Command run was: {e.cmd}")

Loading…
Cancel
Save

Powered by TurnKey Linux.