In the last episode (Dec 08), [EMAIL PROTECTED] said: > Hi all > > How can i make a tail -f <file> and show the results in a web page with > out having to reload the page every N seconds > > i am using PHP in a script like: > > <?php > $error_log = '/var/log/apache/log'; > passthru ("tail -f $error_log"); > ?>
The following 3-line CGI works fine: #! /bin/sh printf "Content-type: text/plain\r\n\r\n" tail -f /var/log/messages If you want a PHP solution, try a php mailinglist. -- Dan Nelson [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message