This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Steve, >Date: 2 Jun 1997 13:01:07 -0500 >From: "Steve Mauget" <address@hidden> >Organization: USDA >To: "Steve Emmerson" <address@hidden> >Subject: Re: 970602: compiling .F fil >Keywords: 199706021417.IAA27579 In the above message, you wrote: > I submitted the following script (CFTEST >& ctest.log) > > #! /bin/sh The above line specifies that the interpreting shell will be /bin/sh. > echo '1' > cat >conftest.h <<\EOF > /* C-style line comment */ > #define J 1 > EOF > echo '2' > cat >conftest.F <<\EOF > #include "conftest.h" > #define N 5 > /* C-style line comment */ > real r(N) > stop N /* C-style trailing comment */ > end > EOF > echo '3' > echo $status /* My addition ...*/ > /usr/local/bin/f90 -o conftest conftest.F > echo $status > rm conftest* > exit > > ...and here is the Standard Output/Error. Neither > of the 2 echo $status lines in the script returned anything, If you use /bin/sh to interpret the script, then you'll have to change all the "$status" to "$?". -------- Steve Emmerson <address@hidden>