iCE Breaker's Log Monitor (IBLM)
After searching for an X based 'tail -f' program that worked the way I wanted it to, I finally gave up and said I'd have to code my own. Here it is. I'm sharing this program just in case there are others out there like me who are disappointed in some of the functionality of such programs.
There are obviously going to be bugs and problems (as with just about any program), so if you spot something that doesn't look right or I should change the functionality, please let me know.
Configuration
IBLM looks for a file named ~/.iblm.xml. The format of the file is very simple and I'll most likely expand on it in the near future. Below is an example. Included in this archive are 2 examples.
iblm.xml.example - Barebones/Minimal configuration. iblm.xml.future - This contains some of the future features of IBLM.
Some options listed in this file work in this version.
<?xml version="1.0"?>
<CONFIG PROG="IBLM" VERSION="0.04">
<!--
Global configuration options. These options are defaults.
-->
<GLOBAL>
<!--
POLLRATE (ms): Number of milliseconds to wait between poll intervals
-->
<POLLRATE>1000</POLLRATE>
</GLOBAL>
<!-- FILE: Definition of a log file. -->
<FILE PATH="/var/log/messages">
<!--
What we want our tab to display
-->
<TABNAME>Lilo</TABNAME>
<!--
Text foreground color
-->
<FORECOLOR>#0000FF</FORECOLOR>
<!--
Text background color
-->
<BACKCOLOR>#000000</BACKCOLOR>
</FILE>
<FILE PATH="/var/log/mailllog">
<TABNAME>Alterhouse</TABNAME>
<FORECOLOR>FF00FF</FORECOLOR>
<BACKCOLOR>000000</BACKCOLOR>
</FILE>
</CONFIG>
Launching
I use IBLM at work. Obviously my workstation isn't the webserver. So instead of SMB mounting (since it wouldn't work anyhow) or setting up our log directories via NFS, I export the display to my X workstation with the following command. You may have to execute the command 'xhost +<server>' prior to doing this.
ssh -C -A -X -l <username> <server> -x 'export DISPLAY="<ip addr>:<display>" ;./iblm'
** Security fanatics: If someone is sniff'n you network, having them view IBLM traffic is probably the least of your worries. grin
Final Words
Good luck! smirk Please let me know of any problems you have.
Email: tlore@cyberdyne.org || icebrkr@cyberdyne.org
WWW: http://www.cyberdyne.org/~icebrkr
IRC: LFNet :: #LinuxOS / EFnet :: #Cleveland
