Re: Display syslog file?

From: Date: Fri, 09 Jan 2004 22:52:54 +0000
Subject: Re: Display syslog file?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174179@lists.php.net to get a copy of this message
I don't know if the same syntax is available on Linux, but on Solaris I can use the 'tail -f' command to watch lines being appended to a file from the commandline.. You might be able to do something via passthru("tail -f $PathToSyslog"); in a frame on your page...although there might be socket_blocking or page flush() issues to experiment with - steve At 8:28 AM -0600 1/9/04, Carlton L. Whitmore wrote:
I didn't make my last request very clear. I used lastlog as an example, but what I really want to do is open a syslog file (text file), that is coming in from a VPN box. I'd like to have it displayed live so I can scan it during the day. What is the best way to do this? Someone had suggested using cron, but I'm very new to Linux and PHP so I would need some help with that. Any help is appreciated, Carlton.
-- +------------------------------------------------------------------------+ | Steve Edberg sbedberg@ucdavis.edu | | University of California, Davis (530)754-9127 | | Programming/Database/SysAdmin http://pgfsun.ucdavis.edu/ | +------------------------------------------------------------------------+ | SETI@Home: 1001 Work units on 23 oct 2002 | | 3.152 years CPU time, 3.142 years SETI user... and STILL no aliens... | +------------------------------------------------------------------------+

« previous php.general (#174179) next »