Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-28-2002, 01:23 PM   #1
Registered: May 2001
Location: Norton, KS
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103

Rep: Reputation: 15
capture make's output

I need to capture the output of a 'make' commmand. The output is 'huge', like 6 or 7 screens long. I need any and all out put (not just STDOUT or STDERR) to be saved to a file so that I can send it via e-mail to someone. How do I do this?

Old 06-28-2002, 03:19 PM   #2
LQ Newbie
Registered: Jul 2001
Posts: 24

Rep: Reputation: 15
Saving all output

Something like this will save both stdout and stderr.

make > /tmp/myouput 2>&1

That last little bit says "send the output of file descriptort
2 (which is stderr) to wherever the output of file descriptor
1 (which is stdout) is going". Becuase it looks at where
stdout is going _at_ _that_ _point_, it's important to
put the redirection of stderr second.

make 2>&1 | tee /tmp/myoutput

Does the same, but also lets you watch what's happenning.
Old 07-07-2002, 06:15 AM   #3
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
If you run make inside X using a terminal you can copy it and paste it into a text file, or you can copy it and at the top of the term window is the option to save output.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to adjust make's configuration?? piggyaugu Linux - Software 2 08-01-2005 07:32 PM
Capture 'make' Output to File Kenji Miyamoto Linux - Software 4 05-23-2005 06:56 PM
Stopping recursive make's on error Meatwad Programming 0 04-28-2004 06:31 PM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 08:17 PM
Capture support for dvd and video capture in linux is it even going to be real ever? maximalred Linux - Distributions 3 07-06-2003 08:29 PM

All times are GMT -5. The time now is 08:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration