运行程序时如何停止终端中出现的错误消息?

Kei*_*thB -2 command-line logging

许多 Ubuntu 程序在终端上写满了错误信息。从我记事起,这种情况就一直在发生。

  1. 如果这些是消息所说的错误,为什么他们永远不会得到修复?
  2. 如果消息没有用,为什么要生成它们?
  3. 有没有办法将它们全部压制?

例如:

$ evince foo.pdf &

[2] 16612
$ ### BUG ###
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

$ gvim exponential_model_exact_equilibrium_00.cc

(gvim:16664): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised

$ acroread foo.pdf

Gtk-Message: Failed to load module "unity-gtk-module"

(acroread:16674): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
Run Code Online (Sandbox Code Playgroud)

fkr*_*iem 5

  1. 可能欢迎您提交修复程序
  2. 它们对没有用的事实并不意味着它们没有用处。
  3. 试试command 2> /dev/null