Date: Sun, 8 Dec 2002 23:45:22 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: nbari@unixmexico.com Cc: freebsd-isp@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: tail -f <file> on webpage Message-ID: <20021209054521.GB20704@dan.emsphone.com> In-Reply-To: <26647.148.243.211.1.1039409754.squirrel@mail.unixmexico.com> References: <26647.148.243.211.1.1039409754.squirrel@mail.unixmexico.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Dec 08), nbari@unixmexico.com 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 dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021209054521.GB20704>