LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to output stdout to a file (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-output-stdout-to-a-file-150469/)

SciYro 02-25-2004 04:26 PM

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?

Mara 02-25-2004 04:31 PM

Errors don't go to stdout, they usually go to stderr instead. You can send all errors to a file using
make 2> filename

SciYro 02-25-2004 04:52 PM

ah thx, that did the trick, but just outa curisoity what does the 2 stand for?

Mara 02-25-2004 05:02 PM

2 - stderr
1 - stdout
0 - stdin

SciYro 02-25-2004 05:08 PM

ah ic, thx again Mara


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