Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcso!mike From: mike@hpfcso.HP.COM (Mike McNelly) Newsgroups: comp.sys.hp Subject: Re: Fortran Libraries ??? Message-ID: <7370062@hpfcso.HP.COM> Date: 21 Dec 89 16:29:24 GMT References: <2644@umbc3.UMBC.EDU> Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 24 > ... > On a related note, what corresponds to stderr in Fortran? I am using lsode > and every once in a while it prints some error message to stdout which > is not so nice since I am using it in a heavily pipe oriented environment. > Subsequent parsers tend to choke on that stuff. > Peter > peter@media-lab.media.mit.edu If I understand your question correctly, all HP-UX Fortran implementations preconnect logical unit 5 to stdin, unit 6 to stdout, and unit 7 to stderr. Thus write(7,*)"hello world" will go to stderr. This preconnection can be overridden with an explicit OPEN statement to the unit in question. It's also possible to use shell input/output redirection (i.e. <, >) and piping facilities to redirect stdin, stdout and stderr to the locations of your choice. Mike McNelly mike%hpfcla@hplabs.hp.com