Web implementation of “tail -f filename”?

后端 未结 4 522
别跟我提以往
别跟我提以往 2020-12-31 14:49

I have a log file and want to create a webpage (possibly Python but not strictly) that will work much like unix \"tail -f filename\" command works (show new log lines when t

4条回答
  •  别那么骄傲
    2020-12-31 15:35

    You read the file and print the last lines to the page. You might also use a GET-variable to you define number of rows to output using ?n=x where x is the number of lines.

提交回复
热议问题