号召大家为地震捐款# Environmental - 环境科学与工程
p*g
1 楼
I want to write a program to read a log file output from another program.
The file could be quite large. And I just want to read the last updated
content in it. How to achieve that? c++/python/shell/java... any kind of
language is fine.
I am think of tail -f, but how to read the pipe of "tail -f log | " in a program?
The file could be quite large. And I just want to read the last updated
content in it. How to achieve that? c++/python/shell/java... any kind of
language is fine.
I am think of tail -f, but how to read the pipe of "tail -f log | " in a program?