Jan-03-2019, 08:56 AM
Hi, try this perhaps
p = subprocess.run("echo " + cmd + " | nc -U " + Socket1Location, shell = True, capture_output=True) print(p.returncode) print(p.stdout)