My list of what files to look at, a list of strings to look for in each log file, and an optional script-name to run, are all contained in a configuration file that gets read when my FollowTail script starts up.
Without stopping my FollowTail script, how could I detect whether my configuration file changed so I could re-read it and update my list of files/strings to monitor?
Another question: I want to allow other applications to grab (read, delete, rename) my consolidated logfile at any time. So I'm opening for append/writing/closing through a file handle each time I add stuff. Is this the most efficient way? It'd be faster if I could just leave my logfile open for append, but then no one can grab the file at any time.
Finally, I have a Unix (maybe Perl) question that's not really related, but kinda is. There is a VxWorks system that I can only telnet into, and once in, that system is continually spewing out stuff that my FollowTail script would monitor if only the stuff was going to a log file. The developers of the other system do not want to write the stuff to a log file and make it accessible to me via NFS mount (it "puts too much of a load on the cpu"). And there's no rsh or ssh allowed into their system. With that, I assume they won't want to do any sockets with me.
I was just wondering, since I can telnet in and see everything dumped to the screen, could I intercept that stream? Sort of a telnet pipe out?
Thanks.
In reply to POE::Wheel questions by shockers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |