LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 06-28-2002, 12:23 PM   #1
gboutwel
Member
 
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?

Thanks,
 
Old 06-28-2002, 02:19 PM   #2
kop
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, 05:15 AM   #3
MasterC
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.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to adjust make's configuration?? piggyaugu Linux - Software 2 08-01-2005 06:32 PM
Capture 'make' Output to File Kenji Miyamoto Linux - Software 4 05-23-2005 05:56 PM
Stopping recursive make's on error Meatwad Programming 0 04-28-2004 05:31 PM
the sound gives output when using mic but no output when run a music file medo Debian 0 04-19-2004 07: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 07:29 PM


All times are GMT -5. The time now is 11:43 AM.

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