|
Please give a help to create a script
Hi Linux Masters,
I need a shell script which should generate
kernel.info to -/var/log/kernel_info.log
Some of our machines has
kernel info defined in this file
vi /etc/syslog.conf
(
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* -/var/log/kernel
daemon.* /var/log/daemon
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;*.!warn;auth,authpriv,kern,mail.none -/var/log/messages
)
Some dont
So I need a script which should look etc/syslog.conf and add
kern.* -/var/log/kernel
Or any other best way to solve this.
Thanks!
|