Java web application that can stream the content of an arbitrary file to the browser (live tail)

后端 未结 2 1515
旧巷少年郎
旧巷少年郎 2021-01-15 16:36

I have been searching the web for a while for a Java web application that can be used to \"tail\" on any arbitrary file on the file system. The most important requirement wo

2条回答
  •  终归单人心
    2021-01-15 16:52

    I had to do this myself a while back as I couldn't find one. I would recommend going down via the Ajax route -- as trying to have "tail -f ..." process started and capturing its console is tedious and also since you keep the connection to the browser open for a long while you will find out that sometimes the browser will just close the connection.

提交回复
热议问题