Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

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!

share|improve this answer
add comment

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.