zirias@
Developer
Well, what do you think? Problem is, I have a linux-based router/firewall and sometimes (every few months) the NIC driver goes crazy ... I have no idea whether this is a hardware problem or just a bug in the driver. But what helps is restarting the networking ...
To automate this, I'm building a daemon right now that can monitor logfiles and watch out for patterns, given as perl compatible regular expressions. If a pattern matches, it should execute a corresponding action, for example a shell script.
Right now, this is work in progress, but I plan to use Linux' inotify API for monitoring the logs.
So in fact, this is two questions: First, what do you think about writing software, that is tied to ONE operating system, just because of some implementation detail? And second: DO I have alternatives? Is there a C library I don't know, that abstracts filesystem monitoring in a platform-independent way?
To automate this, I'm building a daemon right now that can monitor logfiles and watch out for patterns, given as perl compatible regular expressions. If a pattern matches, it should execute a corresponding action, for example a shell script.
Right now, this is work in progress, but I plan to use Linux' inotify API for monitoring the logs.
So in fact, this is two questions: First, what do you think about writing software, that is tied to ONE operating system, just because of some implementation detail? And second: DO I have alternatives? Is there a C library I don't know, that abstracts filesystem monitoring in a platform-independent way?