How can I "tail -f" into a constantly updating web page?
March 25, 2008 6:34 AM
Subscribe
How can I effectively "tail -f" into a constantly updating web page?
I've got a log file that I need to have visible in a web page, constantly updating, kind of like doing 'tail -f logfile' in a console. I've seen this done before (e.g. the Shoutcast server has a built-in cgi routine that will constantly update the page with the contents of the sc_serv.log file) without having to manually refresh the page. A meta-refresh won't work because you'll lose your place in the log (the page may rescroll to the top).
The caveat is that I'm using IIS5 on Win2k. I can't install PHP or Perl (policy), otherwise this might be a walk in the park.
Any ideas? Got two seconds to give me some awesome code, or link me to something where this has been done before?
posted by kuperman to computers & internet (8 comments total)
<meta http-equiv="refresh" content="5;url=http://uri-of-page#end">... log file content ...
<a name="end">The End.</a>
posted by enn at 6:54 AM on March 25