Messages in this thread | | | From | "Sebastian Piecha" <> | Date | Wed, 15 Oct 2003 00:57:28 +0200 | Subject | Re: How to wait for kernel messages? |
| |
> On Mon, 13 Oct 2003, Sebastian Piecha wrote: > > > I have some problems with one NIC. Due to lack of time as an > > workaround I'd like to wait for the kernel message "NETDEV WATCHDOG: > > eth0: transmit timed out" and ifconfig down/up the NIC. > > > > How can I trigger any action by such a kernel message? Do I have to > > grep the kernel log? > >
Thanks a lot for all the hints. I'm using now a fifo to which syslogd is logging kernel messages. A shell script greps the right message.
I attach the shell script inline for whom it may be interesting.
Mit freundlichen Gruessen/Best regards, Sebastian Piecha
EMail: spi@gmxpro.de
The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance.
---- File information ----------- File: check_nic.txt Date: 15 Oct 2003, 0:56 Size: 771 bytes. Type: Text [unhandled content-type:application/octet-stream] | |