gphoto2经常在它的错误消息后面附加一节建议,这是第一次很有帮助,但之后却妨碍了它:
For debugging messages, please use the --debug option.
Debugging messages may help finding a solution to your problem.
If you intend to send any error or debug messages to the gphoto
developer mailing list <gphoto-devel@lists.sourceforge.net>, please run
gphoto2 as follows:
env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --port
usb:002,035 -L A/store_00010001/DCIM/
Please make sure there is sufficient quoting around the arguments.这能在没有像这样的蛮力的情况下被压制吗?
gphoto2包装在/usr/local/bin/gphoto2中,/usr/local/bin/gphoto2过滤它的输出。gphoto2 --quiet,太压抑了。发布于 2013-07-02 16:27:55
一个朋友翻了一下源代码。他发现错误属于stderr,建议属于stdout;因此,建议(而不是错误)被
gphoto2 ... > /dev/null而且,--debug会取消建议,因此另一个答案是
gphoto2 ... --debug --debug-logfile=/dev/null对于日常使用,在您使用的任何shell中,都要将其中一个化名。
https://stackoverflow.com/questions/17408458
复制相似问题