Article View: comp.lang.fortran
Article #4530Re: How to get command line arguments from unix with FORTRAN?
From: Bruno W. Repetto
Date: Wed, 27 Jan 1993 15:47
Date: Wed, 27 Jan 1993 15:47
31 lines
2185 bytes
2185 bytes
Excerpts from netnews.comp.lang.fortran: 26-Jan-93 Re: How to get command line.. by Pat Murphy@nrao.edu > From: pmurphy@nrao.edu (Pat Murphy) > Subject: Re: How to get command line arguments from unix with FORTRAN? > Date: Tue, 26 Jan 1993 17:18:47 GMT > [Stuff deleted.] > A brief experiment with telnet shows that his posting machine is not a > Sun: "ULTRIX V4.2A (Rev. 47)". My f77 info for Ultrix (4.0), > fortunately shows getarg identical to the above. However I know that > for other flavors of unix it is different. For example, HP-UX uses a > function IGETARG with three arguments. My guess is that it works as in Microsoft Fortran, versions 5. or better: The first argument is the argument number, integer. The second is the argument itself, a char. The third one is the lenght of the argument, integer. In some systems, the first argument is the program name. Careful with this. Bruno. br0w+@andrew.cmu.edu > - Pat > -- > ========================================================================== > | Patrick P. Murphy, Ph.D. Scientific Programming Analyst | > | National Radio Astronomy Observatory Net: pmurphy@nrao.edu | > | 520 Edgemont Road Phone: (804) 296-0372 | > | Charlottesville, VA 22903-2475 VoiceMail: (804) 980-5889 | > | "I don't believe in the no-win scenario" --- James T. Kirk | > ==========================================================================
Technical Details
Message-ID:
<cfNeuOW00YUoI4qo1F@andrew.cmu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!bb3.andrew.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!br0w+Show Full Headers
Complete Article Headers
Organization: Doctoral student, Industrial Administration, Carnegie Mellon, Pittsburgh, PA Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!bb3.andrew.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!br0w+ Newsgroups: comp.lang.fortran Message-ID: <cfNeuOW00YUoI4qo1F@andrew.cmu.edu> Date: Wed, 27 Jan 1993 10:47:38 -0500 From: "Bruno W. Repetto" <br0w+@andrew.cmu.edu> Subject: Re: How to get command line arguments from unix with FORTRAN? In-Reply-To: <PMURPHY.93Jan26121847@orangutan.cv.nrao.edu> Lines: 32