From 7ef6df05ca3594032068756243c6f343caf6c218 Mon Sep 17 00:00:00 2001 From: Andreas Wrede Date: Tue, 8 Dec 2020 17:23:21 -0500 Subject: [PATCH] decode binary --- hbc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbc b/hbc index ea49f21..e5888e0 100755 --- a/hbc +++ b/hbc @@ -226,7 +226,7 @@ def createConnections(hosts): def doexec(conn, data): try: - ro = subprocess.check_output(data, stderr=subprocess.STDOUT, shell=True) + ro = subprocess.check_output(data, stderr=subprocess.STDOUT, shell=True).decode() fail = "OK" except subprocess.CalledProcessError as e: ro = str(e)