> On Wed, Apr 23, 2008 at 11:23:59AM +0100, Graeme Hilton wrote:
>> Is there a way to have tail follow two files and display each in a
>> different colour on the terminal? I've looked at bash colouring, but
>> that
>> only seems to cover coloured prompts!
>>
>> In my case I want to follow httpd_access and httpd_error and want the
>> error log to show up red, interspersed with the access log.
>
> A quick googling turns up multitail[1], which may be able to manage
> it.
>
> Hugo.
>
> [1] http://www.vanheusden.com/multitail/
Thank you Hugo (having finally found time to install and test this utility!).
multitail --mergeall -n 0 /var/log/access.log -n 0 -ci red /var/log/error.log
does just what I wanted.
It will even run commands at a specified interval and highlight the
changes in output:
multitail -R 2 -l "netstat -t"
For those with red-hat based systems (RHEL, CentOS, Whitebox...) then you
can get rpms from the Dag Wieers repository [1]. It's already in the
Fedora repository.
Graeme Hilton
[1]
http://dag.wieers.com/rpm/packages/multitail/