From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,26fb830d1a32af1e X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2000-10-30 22:42:02 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!newsfeed.direct.ca!look.ca!nntp.cs.ubc.ca!cyclone.rdc-detw.rr.com!news.mw.mediaone.net!cyclone.kc.rr.com!news.kc.rr.com!typhoon.kc.rr.com.POSTED!not-for-mail Message-ID: <39FE69AA.F275990D@kc.rr.com> From: Tony Hammitt Reply-To: tony@hammitt.com X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.17pre9 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.linux.alpha Subject: Re: redirect stderr to a file (Compaq FORTRAN compiler) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 31 Oct 2000 06:41:45 GMT NNTP-Posting-Host: 24.163.146.151 X-Complaints-To: abuse@rr.com X-Trace: typhoon.kc.rr.com 972974505 24.163.146.151 (Tue, 31 Oct 2000 00:41:45 CST) NNTP-Posting-Date: Tue, 31 Oct 2000 00:41:45 CST Xref: supernews.google.com comp.os.linux.alpha:1034 It depends which shell you are using as to what you do to get stderr to go to a file. Perhaps using sh or bash for when you compile would be good. I'd try bash$ fort program.for >output 2>errors the '2>' should direct stderr into the 'errors' file. This doesn't work in tcsh. Regards, Tony Hammitt Randy Spaulding wrote: > > What is the command to redirect output sent to stderr to a file? I'm > running Compaq FORTRAN compiler on an Alpha with RedHat 6.2. The fort > command sends it output to stderr. When I try to compile I get a huge list > of warnings (about COMMON allocation, of course). I do not get an output > file so there must be errors in there somewhere, but the list of warnings is > so long (a couple thousand, I would say) that I can't debug it. I need to > send the output to a file but I can't find either a compiler switch or a > Linux command that will work. I tried the standard redirector, e.g.: > > fort program.for > errors > > This redirector apparently ignores stderr because I get a zero-length file. > I read the compiler's online manual twice and did not see a switch. The > switch telling it to ignore COMMON warnings does not seem to work (it still > displays them on the screen). There's got to be some way?? > > Thanks, > > -- > Randy Spaulding > Instrumentation Physicist > Idaho Accelerator Center > Ph: (208) 282-5876 > Fax:(208) 282-5878 > spauldin@physics.isu.edu -- Doubt is not a pleasant condition, but certainty is absurd. -- Voltaire