Is there a way to tail a resource such as http://someserver.com/logs/server.log ?
This is what I would do for a local file.
tail -F /var/logs/somefile.log
I would like something similar to that for a file accessed through the http protocol
httptail
Is there a way to tail a resource such as http://someserver.com/logs/server.log ?
This is what I would do for a local file.
tail -F /var/logs/somefile.log
I would like something similar to that for a file accessed through the http protocol
Best Answer
This will do it:
It's not very friendly on teh web-server. You could replace the
true
withsleep 1
to be less resource intensive.Like
tail -f
, you need to^C
when you are done watching the output, even when the output is done.