Whenever I'm trying to run this python code, it returns a blank result / empty result. Can anyone help me with understanding why this happens?
#!/bin/python
import re
import time
import io
timecheck = open("/tmp/some.log", "r")
storeout = open("/tmp/storeout.txt", "w+")
for line in timecheck:
if re.match("(.*)(Alarm obtained - type: KPI_CALCULATION)(.*)", line):
out1 = line
print >> storeout, line,
time1 = out1[11:19]
time2 = out1[164:172]
content = storeout.read()
print(content)
storeout.close()