📅  最后修改于: 2022-03-11 14:45:06.871000             🧑  作者: Mango
代码示例1
pip or pip3 install sh
from sh import tail
# runs forever
for line in tail("-f", "/var/log/some_log_file.log", _iter=True):
print(line)