tail -f /var/adm/messages | grep foo &
Should do what you want - only display messages containing "foo".
Also look at
man syslog.conf
as it's likely you can better achieve what you want by editing that file.
On Tue, 2 Dec 1997, Mike Cunningham wrote:
> Ok, i want to run 'cat /var/adm/messages &' in the background to view
> system messages, but i am only interested in a few actual messages, how or
> what is the command lines to only print out logins, connection attempts,
> ip-fw messages, su, and any other messages of that type.
>
> Thanks,
> Mike Cunningham (mikec@shaw.wave.ca)
>
>
>
-- Alistair Riddell - BOFH IT Support Department, George Watson's College, Edinburgh Tel: +44 131 447 7931 Ext 176 Fax: +44 131 452 8594