Operating System - HP-UX
1832865 Members
2732 Online
110048 Solutions
New Discussion

Redirecting Console error messages

 
SOLVED
Go to solution
Alan Edwards
Frequent Advisor

Redirecting Console error messages

Is there a way to stop console error messages writing over an X11 workstation desktop?

Systems are J6700, OS 11.00

Alan
Klatu Barada Nikto
5 REPLIES 5
Thierry Poels_1
Honored Contributor

Re: Redirecting Console error messages

Hi,

I suppose you can play around with /etc/syslog.conf (see manpage).

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Paula J Frazer-Campbell
Honored Contributor

Re: Redirecting Console error messages

Alan

The best way is to identify all errors and fix them.
They are there for a reason.



Paula
If you can spell SysAdmin then you is one - anon
Sundar_7
Honored Contributor
Solution

Re: Redirecting Console error messages

Hi Alan,

You can defined error message types and their destination in /etc/syslog.conf

man syslogd

Once you are done with file, send a HUP signal to syslogd

Sundar
Learn What to do ,How to do and more importantly When to do ?
Alan Edwards
Frequent Advisor

Re: Redirecting Console error messages

Thanks, I have updated syslog.conf to send kernel and auth notices to a log file instead of the console.

Alan
Klatu Barada Nikto
Patrick Wallek
Honored Contributor

Re: Redirecting Console error messages

Actually the easiest way is to open a "console window" from within CDE.

Go to the "Application Manager" (the file drawer looking icon) and open it. From within that open "Desktop Tools" and from within the "Desktop Tools" you can open a "Terminal Console". With this open all console messages will go to it and they won't mess up your desktop.

Once you have that window opened try the following:

# echo "TEST" > /dev/console

You should now see the word TEST in that window.

I keep one of those windows open all the time on my CDE desktop. I have resized it to be fairly small and leave it in the top right corner where I can always see it.