how to output stdout to a file
ok, well iv been trying to get something to compile but it just givs like 1000 erors and im positive its the first error that caused everythign to error out, only 1 problem, i cant get "make" to redirect its output to a file, i used "make -n filename" but it doesent include the errors in the file, wich is realy what i only want,
so my question is, is there a program that can save the information sent to stdout to a file? |
Errors don't go to stdout, they usually go to stderr instead. You can send all errors to a file using
make 2> filename |
ah thx, that did the trick, but just outa curisoity what does the 2 stand for?
|
2 - stderr
1 - stdout 0 - stdin |
ah ic, thx again Mara
|
All times are GMT -5. The time now is 07:15 AM. |