Is there an HTTP server which can serve files being written/appended to by some other process? I tried to serve a FIFO file with Apache but such files has zero size so Apache serves empty file even if the FIFO has some data in it.

link|improve this question

73% accept rate
feedback

1 Answer

up vote 1 down vote accepted

This has a helpful example: http://linuxgazette.net/123/smith.html

Uses php to parse the fifo and shunts it to browser... then ajax to refresh

<?php
  $fp = fopen("ajaxfifo", "r");
  if ($fp) {
    $ajaxstring = fgets($fp, 128);
    fclose($fp);
  }

  header("Content-Type: text/html");
  print($ajaxstring);
?>

If you are wanting to have several/many users accessing, you will need some form of fanout, like his previous page.. handy!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.