LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Inhibit GTK verbose messages when running GTK/Gnome applications from terminal (http://www.linuxquestions.org/questions/linux-software-2/inhibit-gtk-verbose-messages-when-running-gtk-gnome-applications-from-terminal-768104/)

d1s4st3r 11-10-2009 02:15 AM

Inhibit GTK verbose messages when running GTK/Gnome applications from terminal
 
Hi guys,

do anyone know a quick way to inhibit/hide GTK warning, info and debugging messages when running GTK+/Gnome applications from terminal?

I means those boring messages like "Gtk-WARNING blablabla..." and similar ones.

Thanks in advance!

rabbit2345 11-10-2009 10:33 PM

I think if you pipe stderr to /dev/null, it should stop the messages from the program.

Code:

program --start-now /home/jack/me.iso 2>/dev/null 1>/dev/null
Just as a side note, does anyone know why 2>&1 1>/dev/null is not the same as piping 1 and 2 to /dev/null like 1>/dev/null 2>/dev/null?



good luck,
rabbit2345


All times are GMT -5. The time now is 09:15 AM.