From 4bc47a9503656f2af0f563acf87da5c126139eac Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 22 Jan 2026 12:30:08 -0500 Subject: [PATCH] print result.stdout --- transmit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transmit.py b/transmit.py index c906479c..7a49de42 100644 --- a/transmit.py +++ b/transmit.py @@ -553,12 +553,12 @@ if __name__ == "__main__": result = subprocess.run(query, capture_output=True, text=True, check=True) print(f"Command run was: {query}") # gpsd_status = result.stdout.strip() - print(f"Output of the command (stdout): {gpsd_status}") + print(f"Output of the command (stdout): {result.stdout}") except subprocess.CalledProcessError as e: # print(f"Command failed with return code: {e.returncode}") print(f"Command run was: {e.cmd}") # gpsd_status = e.stdout.strip() - print(f"Output of the command (stdout): {e.stdout}") + print(f"Exception Output of the command (stdout): {e.stdout}") # print(f"Error output of the command (stderr): {e.stderr}")