🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #6579

Re: Passing parameter when loading a Fortran program

#6579
From: John W. Lewellen
Date: Wed, 03 Dec 1997 00:00
25 lines
1617 bytes
DMASYB wrote:
> 
> Can anyone help me with this:  How to pass a parameter to a program when
> loading it.
> For example:  Program name is ANYPROG.EXE
> The parameter is PARAM1
> I want to execute the program like this:
> 
> ANYPROG.EXE   PARAM1
> 
> Any help would be greatly appreciated.
> Thanks.

This, sadly, isn't part of the Fortran standard.  Many compilers support
such a feature, but the details (including whether the feature exists)
depend strongly on the compiler.

- John L.

-- 
+--------------------------------------------------------------------+
| John Lewellen         Advanced Photon Source, Argonne National Lab.|
| Lewellen@aps.anl.gov  Opinions expressed above are solely mine     |
+--------------------------------------------------------------------+
Technical Details
Message-ID: <34859736.7E47565E@aps.anl.gov>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <eO0dwSAA9GA.264@upnetnews04>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1094ba,5596e8b35b5f590
X-Google-Attributes: gid1094ba,public
X-Google-Thread: 167b2b,5596e8b35b5f590
X-Google-Attributes: gid167b2b,public
X-Google-Thread: fcffb,5596e8b35b5f590
X-Google-Attributes: gidfcffb,public
X-Google-Thread: f754b,5596e8b35b5f590
X-Google-Attributes: gidf754b,public
X-Google-Thread: f9607,5596e8b35b5f590
X-Google-Attributes: gidf9607,public
From: "John W. Lewellen" <Lewellen@aps.anl.gov>
Subject: Re: Passing parameter when loading a Fortran program
Date: 1997/12/03
Message-ID: <34859736.7E47565E@aps.anl.gov>
X-Deja-AN: 294900591
References: <eO0dwSAA9GA.264@upnetnews04>
Organization: aps/asd
Newsgroups: comp.lang.fortran,fj.lang.fortran,microsoft.public.fortran,slac.lang.fortran,tw.bbs.comp.lang.fortran