I'm having problems getting the following passthru statement to work. It
works fine with the just the grep command.
Help
\n";
passthru('/usr/bin/grep " c=2048" " c=32" " c=2" /var/log/messages |
/usr/bin/awk "{print $1 $3 $5}" ');
?>
file,
maybe later I can limit what is displayed.
Thanks,
Carlton.
-Original Message-
From: Ray Hunter [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 8:46 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Display syslog file?
On Fri, 2004-01-09 at 07:28, 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
I'm very new to PHP.
I want to display /var/log/lastlog with php on a webpage, but I need
some help. How do I do that?
Looking at the docs it looks like file() would work, but I couldn't get
it to display the file.
Carlton.
4 matches
Mail list logo