Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 05-20-2005, 04:30 AM   #1
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.hpp glx_renderer.cpp
"$(CC) bla bla -c glx_renderer.cpp >>

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

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

Old 05-20-2005, 06:14 AM   #3
Registered: Aug 2004
Location: sweden
Distribution: Slackware 10.2 and Win2k
Posts: 127

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

Works great, thx!


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
pipe output to append to a text file davee Linux - Newbie 5 03-22-2016 07:44 PM
how to pipe and parse output of a command learnfast Linux - Newbie 2 06-15-2005 04:55 AM
pipe xine output to file sohmc Linux - Software 0 01-01-2005 10:03 PM
Read the output from a pipe with bash ? fluppi Linux - Software 3 01-13-2004 12:59 PM
Output truncated when using pipe tells Linux - General 1 12-16-2003 08:06 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:32 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