LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-20-2005, 05:30 AM   #1
BBB
Member
 
Registered: Aug 2004
Location: sweden
Distribution: Slackware 10.2 and Win2k
Posts: 127

Rep: Reputation: 15
how to pipe output from make


Ive tried "make | less", "make >> make_log.txt" et.c. but it only writes
output from GnuMake and not GCC. Ive also tried editing the Makefile
a la :
glx_renderer.so : glx_renderer.hpp glx_renderer.cpp
"$(CC) bla bla -c glx_renderer.cpp >> glx_renderer.so.txt

but then it doesn't write ANYTHING to the text file.
Any ideas?
 
Old 05-20-2005, 06:35 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
store: make &> file
view: less < <(make 2>&1) ...in theory...
or: make &> >(less) ...in theory...

Yves.
 
Old 05-20-2005, 07:14 AM   #3
BBB
Member
 
Registered: Aug 2004
Location: sweden
Distribution: Slackware 10.2 and Win2k
Posts: 127

Original Poster
Rep: Reputation: 15
>store: make &> file

Works great, thx!
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to pipe and parse output of a command learnfast Linux - Newbie 2 06-15-2005 05:55 AM
pipe xine output to file sohmc Linux - Software 0 01-01-2005 11:03 PM
Read the output from a pipe with bash ? fluppi Linux - Software 3 01-13-2004 01:59 PM
Output truncated when using pipe tells Linux - General 1 12-16-2003 09:06 PM
pipe output to append to a text file davee Linux - Newbie 3 08-27-2003 06:03 AM


All times are GMT -5. The time now is 05:16 AM.

Main Menu
Advertisement
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