Apr-24-2020, 02:00 PM
Hi
I've a question about match value in python.
On a server I've installed a tool edac-utils. When I launch this command, result is:
[server]edac-util
mc1: 1257 Corrected Errors with no DIMM info
Result is
Thanks
Alex
I've a question about match value in python.
On a server I've installed a tool edac-utils. When I launch this command, result is:
[server]edac-util
mc1: 1257 Corrected Errors with no DIMM info
try: output = subprocess.check_output("edac-util", shell=True) except subprocess.CalledProcessError as error: for line in output.splitlines(): line = str(line) if re.match('^mc1\:\ 1253\ Corrected\ Errors\ with\ no\ DIMM\ info$', line): print ("match ok") else: print ("match ko")(I put all the output on my regex because it doesnt work but there it not works too..)
Result is
match koDoes anyone has an idea about this problem?
Thanks
Alex