On Fri, Aug 12, 2005 at 01:22:42AM +0100, Stephen Shirley wrote:
> >> PB> How about:
> >> PB> tail -f access.log > /dev/tty & tail -f error.log > /dev/tty
> >>Fine but it doesn't tell me which file the message is coming from. I
> >>suppose I could write a script...
I seem to have missed the start of this thread, and I know some of the
people that have replied arent stupid, but at the risk of pointing out
the obvious, dont most modern versions of tail allow you to pass
multiple paths to files to them, seperated by a space, and thusly
prefix any lines with the name of the file name of the file.
I use this, piped through ccze, on any box I admin.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!