Carlos E. R. wrote:

The Tuesday 2006-11-28 at 12:06 +0200, Hylton Conacher(ZR1HPC) wrote:


I am viewing the /var/log/messages file and as there are alot of entries in it
and it is constantly being updated, I wondered if there was a way to display
an updating grep on the file without having to create a script and
corresponding cron entry to run every time the file is updated ie
#tailf /var/log/messages|grep  backup

Just wondering if its possible.


Of course it works. Did you try? :-)
:( No I didn't :(
On a grep cmd of the /var/log/messages file I saw there were many entries that came back. I thought that with the above command incorporating tailf that I would get the last 10 or so entries. When the cmd gave me nothing, without backung up, I prefered to err on the side of caution, and ask here first.

I have now executed the command and initiated a backup and I am getting the display I wanted, bit not what I thought I would get.

Also, you can taylor syslog-ng to create a separate log file filtered with what you want in it.
Another time far far away....:)
--
========================================================================
Using SuSE 9.2 Professional with KDE and Mozilla Mail 1.7.13
Linux user # 229959 at http://counter.li.org
========================================================================

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to