On 10-May-05 Stuart Bailey wrote:
Does anyone know how to disable console messages?
I have a small embedded Linux system running a graphical app which uses QT to access the frame buffer directly. However, when the app is running, I get console messages printed on the screen, thus corrupting it. The sort of message I get are eg notification of eth0 up or down, etc.
Many thanks,
Stuart.
On the assumption that the application is writing its messages to "stderr", try modifying the command that starts the app from
app_cmd ...
to
app_cmd ... 2>/dev/null
This redirects the stderr stream to /dev/null which will silently swallow it.
On the other hand it might just be writing these status messages to the "stdout" stream, in which case you can sink these with
app_cmd ... 1>/dev/null
(or even use both together). However, I'm a bit dubious about the wisdom of sinking stdout!
Hoping this helps, Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@nessie.mcc.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 10-May-05 Time: 20:15:15 ------------------------------ XFMail ------------------------------