On Thursday 13 May 2004 12:07 pm, Anders Johansson wrote:
no listing of the error messages on redirect.
Try
gimptool-2.0 --install rawphoto.c > gimp_tool_output 2>&1
Theory: every process has three default 'channels': standard input (channel 0), standard output (channel 1) and standard error (channel 2). The default redirect > redirects only channel 1, standard output, but the error messages are obviously printed on standard error. The above command says to redirect channel 2 to the same place that channel 1 is going, in this case the log file
Thank you for this, I will remember. Worked like a charm. To answer Marshall's question: 'Still the same errors?'; I don't think so: Original errors:
# gimptool-2.0 --install rawphoto.c <snip> rawphoto.c:27:21: gtk/gtk.h: No such file or directory rawphoto.c:29:26: libgimp/gimp.h: No such file or directory rawphoto.c:30:28: libgimp/gimpui.h: No such file or directory
Errors after corrections (thanks all): rawphoto.c:80:21: gtk/gtk.h: No such file or directory In file included from rawphoto.c:83: /opt/gnome/include/gimp-2.0/libgimp/gimpui.h:23:21: gtk/gtk.h: No such file or directory In file included from /opt/gnome/include/gimp-2.0/libgimpwidgets/gimpwidgets.h:29, from /opt/gnome/include/gimp-2.0/libgimp/gimpui.h:25,... Now it is finding gimp.h and gimpui.h but still not gtk.h. Progress is being made:-). Jerome