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! |
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread should be closed because it is a duplicate.
|
All times are GMT -5. The time now is 12:23 AM. |