* redirect stderr to a file (Compaq FORTRAN compiler)
@ 2000-10-30 23:45 Randy Spaulding
2000-10-31 3:34 ` JJ
2000-10-31 6:41 ` Tony Hammitt
0 siblings, 2 replies; 5+ messages in thread
From: Randy Spaulding @ 2000-10-30 23:45 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: redirect stderr to a file (Compaq FORTRAN compiler)
2000-10-30 23:45 redirect stderr to a file (Compaq FORTRAN compiler) Randy Spaulding
@ 2000-10-31 3:34 ` JJ
2000-10-31 6:41 ` Tony Hammitt
1 sibling, 0 replies; 5+ messages in thread
From: JJ @ 2000-10-31 3:34 UTC (permalink / raw)
try
fort program.for 2> errors
jj
Randy Spaulding <iac18mev@hotmail.com> wrote in message
news:PDnL5.411$LD3.49541@news01.micron.net...
> 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
>
>
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: redirect stderr to a file (Compaq FORTRAN compiler)
2000-10-30 23:45 redirect stderr to a file (Compaq FORTRAN compiler) Randy Spaulding
2000-10-31 3:34 ` JJ
@ 2000-10-31 6:41 ` Tony Hammitt
2000-10-31 16:25 ` Robert M. Riches Jr.
1 sibling, 1 reply; 5+ messages in thread
From: Tony Hammitt @ 2000-10-31 6:41 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: redirect stderr to a file (Compaq FORTRAN compiler)
2000-10-31 6:41 ` Tony Hammitt
@ 2000-10-31 16:25 ` Robert M. Riches Jr.
2000-10-31 18:30 ` Randy Spaulding
0 siblings, 1 reply; 5+ messages in thread
From: Robert M. Riches Jr. @ 2000-10-31 16:25 UTC (permalink / raw)
In csh and tcsh, do the following to put both stdout and stderr
to the same file:
fort program.for >& errorfile
If you want to put stdout in one file and stderr in another, do
the following:
( fort program.for > stdoutfile ) >& stderrfile
Most of this syntax, and more, can be found in man pages for your
shell and/or its commands.
Robert Riches
richesr1@inetarena.com
On Tue, 31 Oct 2000 06:41:45 GMT, Tony Hammitt <thammitt@kc.rr.com> wrote:
>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??
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: redirect stderr to a file (Compaq FORTRAN compiler)
2000-10-31 16:25 ` Robert M. Riches Jr.
@ 2000-10-31 18:30 ` Randy Spaulding
0 siblings, 0 replies; 5+ messages in thread
From: Randy Spaulding @ 2000-10-31 18:30 UTC (permalink / raw)
excellent, thank you all very much for the replies
--
Randy Spaulding
Instrumentation Physicist
Idaho Accelerator Center
Ph: (208) 282-5876
Fax:(208) 282-5878
spauldin@physics.isu.edu
"Robert M. Riches Jr." <rob@GTEDHCP-88.inetarena.com> wrote in message
news:slrn8vtsk5.9r5.rob@GTEDHCP-88.inetarena.com...
> In csh and tcsh, do the following to put both stdout and stderr
> to the same file:
>
> fort program.for >& errorfile
>
> If you want to put stdout in one file and stderr in another, do
> the following:
>
> ( fort program.for > stdoutfile ) >& stderrfile
>
> Most of this syntax, and more, can be found in man pages for your
> shell and/or its commands.
>
> Robert Riches
> richesr1@inetarena.com
>
>
>
> On Tue, 31 Oct 2000 06:41:45 GMT, Tony Hammitt <thammitt@kc.rr.com> wrote:
> >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??
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-10-31 18:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-30 23:45 redirect stderr to a file (Compaq FORTRAN compiler) Randy Spaulding
2000-10-31 3:34 ` JJ
2000-10-31 6:41 ` Tony Hammitt
2000-10-31 16:25 ` Robert M. Riches Jr.
2000-10-31 18:30 ` Randy Spaulding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox