Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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