Article View: alt.linux
Article #316Re: howto move the errors from gcc to a file?
From: hihihi
Date: Sun, 27 May 2001 21:23
Date: Sun, 27 May 2001 21:23
14 lines
1876 bytes
1876 bytes
David. E. Goble wrote: > Hi all; > > I am just beginning to try programming in linux (redhat). > > My problem is when I use gcc ...etc it produces a scolling list of > errors. How can I move or pipe the errors to a file. ie something like > > gcc -o hello.c > error.txt? gcc -o hello hello.c 2>&1 | tee error.txt This way you get the text on screen and in the error.txt text file.
Technical Details
Message-ID:
<3B117048.4020204@hihihi.mine.nu>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!newsfeeds.belnet.be!news.belnet.be!cleanfeed.casema.net!leda.casema.net!post.casema.net!not-for-mailReferences:
<3b0d0a50.19718301@news.adelaide.on.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,4d862f9db31ad355 X-Google-Attributes: gid10c696,public X-Google-Thread: 100c5f,4d862f9db31ad355 X-Google-Attributes: gid100c5f,public X-Google-Thread: 102983,4d862f9db31ad355 X-Google-Attributes: gid102983,public X-Google-Thread: f9b51,4d862f9db31ad355 X-Google-Attributes: gidf9b51,public X-Google-ArrivalTime: 2001-05-27 14:23:22 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!newsfeeds.belnet.be!news.belnet.be!cleanfeed.casema.net!leda.casema.net!post.casema.net!not-for-mail Message-ID: <3B117048.4020204@hihihi.mine.nu> Date: Sun, 27 May 2001 23:23:20 +0200 From: hihihi <hihihi@hihihi.mine.nu> User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-2 i686; en-US; rv:0.9) Gecko/20010505 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: alt.linux,aus.computers.linux,comp.os.linux.development.apps,comp.os.linux.setup Subject: Re: howto move the errors from gcc to a file? References: <3b0d0a50.19718301@news.adelaide.on.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 15 NNTP-Posting-Host: 13dyn227.breda.casema.net X-Trace: reader4 990998600 20640 213.17.29.227 X-Complaints-To: http://www.casema.net/abuse X-Abuse-Info: Please be sure to include a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Server-Date: 27 May 2001 21:23:20 GMT