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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a2fe381277f4e644 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-26 05:21:06 PST Path: nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!news.mathworks.com!udel!gatech!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!lll-winken.llnl.gov!noc.near.net!eisner!kilgallen From: kilgallen@eisner.decus.org (Larry Kilgallen, LJK Software) Newsgroups: comp.lang.ada Subject: Re: Help with CLI Package Message-ID: <1995Feb26.082106.9227@eisner> Date: 26 Feb 95 08:21:06 -0500 References: <3iol5q$do8@dns1.NMSU.Edu> Organization: DECUServe Date: 1995-02-26T08:21:06-05:00 List-Id: 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