Article View: comp.lang.modula2
Article #5018Using CLI routines & Modula-2
From: 4203_5021
Date: Sat, 10 Mar 1990 21:37
Date: Sat, 10 Mar 1990 21:37
56 lines
2222 bytes
2222 bytes
I am writing some modula-2 code for a VAX-6330 and I need some assistance
using VAX Command Language (CLI) routines with my program.
Here's what I would like to do:
Run a program and grab the first parameter on the command-line
into an ARRAY of CHAR in my program.
Here's what I'm using:
A modula-2 compiler that I KNOW is NOT mocka.
The module's it uses always have the following, if it is any help:
Fachbereich Informatik
Universitaet Hamburg
D-2000 Hamburg 13
Here's what I've done:
I have located the following module:
COMMANDLA.DEF (where .IMP is, I don't know)
It EXPORTS the following:
PROCEDURE CLI$PRESENT
PROCEDURE CLI$GETVALUE
PROCEDURE CLI$DISPATCH
PROCEDURE CLI$DCL_PARSE
I know I have to set the following alias:
$name :== "(drive&directory)name.exe"
I want to run the program as:
$name parameter
I have tried to call CLI$PRESENT and CLI$GETVALUE in my
program after importing them from CommandLanguageInterface.
It compiled. It linked. It crashed.
I have alse heard i have to set up a "subcommand.cld" file.
I have tried this, but couldn't get this to work.
(I tried to write one, then use
$SET COMMAND SUBCOMMANDS/OBJECT=SUBCOMMANDS )
ANY help would be greatly appreciated.
I have next to no documentation on how to do this.
Thanks.
Patrick Bradd The University of Western Ontario
Computer Science
===============================================================================
Patrick Bradd "Before you kill somebody,
4203_5021@uwovax.uwo.ca make absolutely sure he
isn't well connected....
So it goes." <K.V.>
===============================================================================
Technical Details
Message-ID:
<5277.25f92d46@uwovax.uwo.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!ria!uwovax!4203_5021Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!ria!uwovax!4203_5021 From: 4203_5021@uwovax.uwo.ca Newsgroups: comp.lang.modula2 Subject: Using CLI routines & Modula-2 Message-ID: <5277.25f92d46@uwovax.uwo.ca> Date: 10 Mar 90 21:37:26 GMT Lines: 56