LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2006, 07:44 PM   #1
Tushar Pednekar
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Rep: Reputation: 0
Disable errors output to console


Hi,

I want to disable the output (errors, warnings) usually sent to the console. How do i do it. I know that it is logged and hence do not want to worry about the output. Just want to disable the console error messages. I know there are variables one can set to the klog daemon to do that - or is it not - but dont know where to set it.

Please help.

Regards,
Tushar
 
Old 07-17-2006, 08:03 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Do you want to disable all errors or just for specific scripts/cronjobs. If it's just a script/cronjob, redirect the standard output to /dev/null.
Code:
your_shell_script >> /dev/null 2>&1

Last edited by pljvaldez; 07-17-2006 at 08:05 PM.
 
Old 07-17-2006, 08:10 PM   #3
Tushar Pednekar
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Actually i got the solution.

modify /etc/init.d/klog file and find the entry for /sbin/klog. modify the command to reflect the following

/sbin/klog -c <Msg Priority>

example: /sbin/klog -c 3 will disable all messages with priorities 3 and higher and allow only messages with priority 0 to 2.

Regards,
Tushar
 
  


Reply



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
How do you disable console mode? shuego Debian 8 12-08-2005 06:50 PM
Console screensaver won't disable jev-bird Linux - Software 0 10-13-2004 12:51 PM
anyone knows how to disable color for vim in console? linuxzouk Linux - Newbie 2 06-07-2004 10:58 PM
How to disable console output kamel Programming 2 06-02-2004 01:41 PM
Disable the console beep? csvke Linux - General 6 03-01-2004 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration