LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] tailing multiple files in one window

[ILUG] tailing multiple files in one window

Peter McEvoy pete at yerma.org
Fri Aug 12 02:42:20 IST 2005


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.

Cheers


-- 
Pete



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell