LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Closed Thread
 
Search this Thread
Old 04-16-2009, 06:11 PM   #1
sharp859
LQ Newbie
 
Registered: May 2008
Posts: 28

Rep: Reputation: 0
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!
 
Old 04-16-2009, 07:24 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,115
Blog Entries: 54

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
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.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
create very limited linux user, only give access to rdesktop treyhphp Linux - Newbie 14 02-18-2009 02:19 PM
a script to give me the last argument !!! rameshvl Linux - General 18 12-29-2008 01:02 PM
how to give password in shell script after scp kushkothari Linux - Networking 2 10-14-2008 12:13 AM
Bash Script Help - Trying to create a variable inside script when run. webaccounts Linux - Newbie 1 06-09-2008 02:40 PM
Is it possible to give MSDOS commands in Unix script??? gopi_20us Programming 1 02-20-2002 12:48 AM


All times are GMT -5. The time now is 06:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration