LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Capture 'make' Output to File (https://www.linuxquestions.org/questions/linux-software-2/capture-make-output-to-file-325833/)

Kenji Miyamoto 05-21-2005 10:35 PM

Capture 'make' Output to File
 
Is it possible to copy the output of 'make' for a large project to a file in Linux?

outspoken 05-21-2005 10:39 PM

yes, it is. ;)

Code:

make > filename

Kenji Miyamoto 05-21-2005 10:55 PM

It doesn't seem to work when make gets an error. Am I not able to capture error messages?

rstewart 05-23-2005 05:42 PM

Sure you can.

make > filename 2>&1

eddiebaby1023 05-23-2005 05:56 PM

Or you can split the output into separate files:

make > outfile 2>errfile

but you'll have a hard job figuring where the error occurred!


All times are GMT -5. The time now is 09:18 AM.