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,8be452774bba3c5f X-Google-Attributes: gid103376,public From: cm@mihalis.demon.co.uk (Chris Morgan) Subject: Re: Need help re: System Calls Date: 1997/04/07 Message-ID: #1/1 X-Deja-AN: 231378920 X-NNTP-Posting-Host: mihalis.demon.co.uk Organization: Linux Hackers Unlimited Newsgroups: comp.lang.ada Date: 1997-04-07T00:00:00+00:00 List-Id: In article dewar@merv.cs.nyu.edu (Robert Dewar) writes: > > Bill asks > > < case, UNIX commands) in the GNAT compiler of Ada 95. Any help would be > appreciated. (Note: in this case, I am trying to implement a command which > is stored in a string).>> > > Remember that the specs of the g-* units in the GNAT library are an important > part of the documentation. These is a collection of useful stuff distributed > with GNAT, and the specs (ads files) act as the documentation. To answer > this question look at GNAT.OS_Lib.Spawn in g-os_lib.ads. > And failing that just pragma interface to the C routine "system". I've got an example at work if you want (drop me a line in that case) which tests whether a file is a named pipe using the shell. Ok it's gross but it helped :-) -- Chris Morgan (cm@mihalis.demon.co.uk)