From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,560db337e2dbcd3e X-Google-Attributes: gid103376,public From: Ken Garlington Subject: Re: How to pass commandline parameters to a vax vms ada main prog Date: 1997/01/27 Message-ID: <32ECAB9A.9CD@lmtas.lmco.com>#1/1 X-Deja-AN: 212515535 references: <32E71F0B.270@dfd.dlr.de> <32E94CAC.4148@lmtas.lmco.com> <1997Jan25.131045.1@eisner> content-type: text/plain; charset=us-ascii organization: Lockheed Martin Tactical Aircraft Systems mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.01 (Win95; U) Date: 1997-01-27T00:00:00+00:00 List-Id: Larry Kilgallen wrote: > > In article <32E94CAC.4148@lmtas.lmco.com>, Ken Garlington writes: > > > In addition to the Ada advice already posted, don't forget that you > > will need to define your executable as a foreign command; e.g. for > > executable TEST.EXE > > > > TEST :== $disk:[directory]TEST.EXE > > > > The dollar sign at the front is important. Then, you should be able to > > execute TEST as a verb: > > > > $ TEST stuff > > > > and read/parse "stuff" successfully. > > You can get away without defining a symbol if you are willing to do more > typing for each invocation: > > $ MCR disk:[directory]TEST.EXE StUFf However, you have to be careful with MCR, since it may not be portable. I just tried it on my VAX, and got an error (RSX image not found). One of the advantages of defining the image as a symbol (and, if you're using the DCL parse routines, linking the CLD file in as an object file vs. keeping it a separate CLD file) is that it will work just about anywhere. > > An example of a situation where lots of typing per invocation is when > every invocation will be from a command procedure. The computer does > not care. True, although you can define a symbol in this case as well. > > The basic rule about command line parsing in VMS, no matter how you > do it, is that there will be nothing to parse if you use the RUN > command to invoke the program. > > Larry Kilgallen -- LMTAS - The Fighter Enterprise - "Our Brand Means Quality" For job listings, other info: http://www.lmtas.com or http://www.lmco.com