Ado directly on the code, named xx.py
import sys
while True:
line = sys.stdin.readline()
print(line)
Use: tail -f xxxx.log | xx.py
You can print () rewrite the way you want to handle. Simple and quick.
Ado directly on the code, named xx.py
import sys
while True:
line = sys.stdin.readline()
print(line)
Use: tail -f xxxx.log | xx.py
You can print () rewrite the way you want to handle. Simple and quick.