You could try something like
#!/bin/bash
klogd -f /var/log/kern.tmp
tail -f /var/log/kern.temp | xargs multilog

I haven't tried this, so I'm not 100% sure it works. You will probably
have to play with the timestamping as well, as I'm not sure that
multilog uses the same type of timestamping as syslogd. Alternatively,
you could hack klogd to use djb's timestamping and add an option which
lets it send output directly to stdout, in which case you could just do
klogd --stdout |multilog.

I have not tested this, but it should be possible to make it work. As
usual, std_disclaimer.h applies.

Henrik.


Ismal Hisham Darus wrote:

> does anyone knows how to log the kernel if using the multilog ? i
> manage to log the deamon process but not the kernel.
>
> Ismal Hisham Mohd Darus
> Asst. Manager, System Support
> John Hancock Life Insurance (Malaysia) Berhad

Reply via email to