comp.lang.ada
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen, LJK Software)
Subject: Re: Help with CLI Package
Date: 26 Feb 95 08:21:06 -0500
Date: 1995-02-26T08:21:06-05:00	[thread overview]
Message-ID: <1995Feb26.082106.9227@eisner> (raw)
In-Reply-To: 3iol5q$do8@dns1.NMSU.Edu

In article <3iol5q$do8@dns1.NMSU.Edu>, turbo@acca.nmsu.edu (Turbo of Sloth DikuMUD) writes:
> 
> Hello, can someone please help me with the CLI Package.
> I want to be able to execute VMS commands from within Ada programs.

The CLI package is for making your own program honor commands,
rather than for giving commands from your program.

For the problem you are trying to solve, you want the LIB package,
choosing between LIB.DO_COMMAND and LIB.SPAWN.

> Can you please give me an example of how to use it, say for using a 
> directory listing as input for a program? How would I get a directory
> listing from within Ada?

Writing a quality program to iterate over files in a directory should
be done with the LIB package, with LIB.FILE_SCAN or LIB.FIND_FILE and
accompanying routines.  Reading the text output created by the Directory
command would be a gross hack unworthy of the Ada programming language :-).

Larry Kilgallen



      reply	other threads:[~1995-02-26 13:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-02-26  1:23 Help with CLI Package Turbo of Sloth DikuMUD
1995-02-26 13:21 ` Larry Kilgallen, LJK Software [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox