tail -f on 4 logs and display output in one terminal window
[email protected] ("Emmanuel. M. Decarie") Tue, 28 Aug 2001 11:43:02 -0400
| Newsgroups | perl.macperl.anyperl |
|---|---|
| Message-ID | <a051010a9b7b16699442e@[192.168.0.2]> |
Hello, On my FreeBSD box with KDE, I have 4 terminal windows opened to follow via tail -f the evolutions of somes logs (like messages, httpd-access.log, customs scripts that produce a log, etc...). I think it could be straightforward to use Perl/Tk using fileevent to display in the same window 4 different logs in their own section of the main window in real time (I'm a Perl/Tk newbie) But then I thought that it could be more simple and portable to just display the output of tail -f on these 4 logs in the terminal window. My problem is that I don't know if there is a way to make fixed regions in the terminal window a little bit like what I think Perl/Tk call "frame" or when you split a window in vi. What I want is a terminal window that look like this: ----------------------- | output tail-f log 1 | ----------------------- | output tail-f log 2 | ----------------------- | output tail-f log 3 | ----------------------- | output tail-f log 4 | ----------------------- Each regions are fixed and don't move, but inside each region you get the output of tail -f. Any suggestions? TIA -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Emmanuel Décarie - Consultant Programmation pour le Web - Programming for the Web UserLand Frontier - Perl - JavaScript - AppleScript - HTML - XML http://www.scriptdigital.com ---> The Frontier Newbie Toolbox: <http://www.scriptdigital.com/fnt/frontierNewbieToolbox.html>