Untitled
unknown
python
2 years ago
455 B
8
Indexable
# expected result [myserver-a ~]# /usr/sbin/clockdiff -o myserver-b . host=myserver-a rtt=750(187)ms/0ms delta=0ms/0ms Tue Nov 22 18:55:14 2022 # in python 3.9.7, output is different: >>> import subprocess >>> cmd = ["/usr/sbin/clockdiff", '-o', 'myserver-b'] >>> proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) >>> stdout, stderr = proc.communicate() >>> stderr '' >>> stdout '1669160646 0 0\n'
Editor is loading...