From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,26fb830d1a32af1e,start X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2000-10-30 15:37:35 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!208.184.7.66!newsfeed.skycache.com!Cidera!skin02.micron.net!news01.micron.net.POSTED!not-for-mail From: "Randy Spaulding" Newsgroups: comp.os.linux.alpha Subject: redirect stderr to a file (Compaq FORTRAN compiler) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Mon, 30 Oct 2000 16:45:55 -0700 NNTP-Posting-Host: 134.50.87.52 X-Trace: news01.micron.net 972949103 134.50.87.52 (Mon, 30 Oct 2000 16:38:23 MST) NNTP-Posting-Date: Mon, 30 Oct 2000 16:38:23 MST Xref: supernews.google.com comp.os.linux.alpha:1031 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