[TAG] suppress terminal messages of other processes

Ben Okopnik ben at callahans.org
Tue Feb 17 17:50:50 MSK 2004


First of all, Christoph -

---------------------------------------------------------------
To: Thomas Adam <thomas_adam16 at yahoo.com>
Subject: Re: [TAG] suppress terminal messages of other processes
Date: Tue, 17 Feb 2004 15:07:10 +0100
Cc: Ben Okopnik <ben at callahans.org>
---------------------------------------------------------------

Do not take a discussion off-list without clearly stating that you're
doing that, please. If you want private advice, my rates are $125/hour;
I'd imagine Thomas would also charge you a consulting fee. I've added
TAG back to the CC list.

On Tue, Feb 17, 2004 at 03:07:10PM +0100, Christoph Sandhaus wrote:
> Hi Thomas, Hi Ben!
> 
> Thanks for fast answering!
> 
> >> If, however, you are referring to
> >> seeing messages to your console, you can do:
> >> 
> >> ```
> >> mesg n
> >> '''
> >> 
> >> which should surpress this. You can even use stty(1).
> > 
> >Nope. You can't suppress messages sent by root. And that's a Good Thing.
> 
> Generally you are right, Ben, but:
> I am displaying server status and activity from my (python) script. The 
> unwanted messages are first of all from a scsi-modul. Thus: I am interested 
> in the message, but not in THIS terminal.
 
Assuming you're talking about non-critical messages, try turning off
SCSI debugging in the kernel config. In an extreme case, you can tweak
the module code itself (but this last one is something you'd have to do
every time you update your kernel.)

> Are you shure there is no way to stop the messages send by root on THIS 
> terminal?

Not unless you send _all_ output on that terminal to "/dev/null". :)
What you're proposing is _still_ getting rid of all system messages, and
I keep telling you that it's a bad idea - and thus not likely to be
supported. Getting rid of the non-critical messages from one module, OK;
shutting down system messages in general, bad idea.


* Ben Okopnik * okopnik.freeshell.org * Technical Editor, Linux Gazette *
-*- See the Linux Gazette in its new home: <http://linuxgazette.net/> -*-




More information about the TAG mailing list