From 4612435c8fd1f5f43fdf89c2ea133812185698fd Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 16 Dec 2025 06:40:54 -0500 Subject: [PATCH] Update transmit.py handle success --- transmit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/transmit.py b/transmit.py index e5adff0b..28e705b1 100644 --- a/transmit.py +++ b/transmit.py @@ -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}")