Thanks for your help. I wasn't absolutely clear on what I wanted to do. The problem is this program will be for some operators at work and they will be informed when there is a new message for them to take note of. The old script that we use at work was written in kornshell and is run by a crontab every two minutes. What it does is, make a copy of the log file and then compare another version of the log file two minutes later and report if there are any new messages and bring them up in a new xterm window. There is a new xterm window for each log file every two minutes. The reason, I am changing the script is it is not ideal, it's a bit of an overhead to compare the files every two mins. With POE::followtail I don't need to run a cron I could just keep it running and informing on new messages. I could also choose to exclude certain messages as well.
I didn't really want to run two scripts to redirect the output to an xterm window, is there anyway of redirecting the output to a new xterm console in the perl script? Thanks