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,89c5ccdf517cb775,start X-Google-Attributes: gid103376,public From: "Marin David Condic, 561.796.8997, M/S 731-96" Subject: Executing Command Line Strings From Ada95/GNAT Date: 1997/07/31 Message-ID: <97073110303193@psavax.pwfl.com>#1/1 X-Deja-AN: 261044116 Sender: Ada programming language Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU X-Vms-To: SMTP%"INFO-ADA@VM1.NODAK.EDU" X-Vms-Cc: CONDIC Newsgroups: comp.lang.ada Date: 1997-07-31T00:00:00+00:00 List-Id: I seem to recall from DEC Ada83 that they provided a procedure (in Starlet?) which would take a string argument and execute it as if it were a DCL command. (Maybe this was wishful thinking - it's been a while since I've fooled with that particular compiler.) Anyway, I'd like to be able to do something very much like that using the GNAT compiler under Sun/Unix and/or PC/WinNT. Which is to say, I would like a procedure which will take a string argument and execute it as a C-Shell or MS-DOS command. I have not seen anything immediately obvious in the documentation - perhaps it involves building a binding to some system routine(s). (I'm not terribly familiar with the system calls for either OS at the moment - I *write* operating systems, not *use* them ;-) If someone knows of some method to do this or has any suggestions, I'd appreciate hearing from you. Thanks. MDC Marin David Condic, Senior Computer Engineer ATT: 561.796.8997 Pratt & Whitney GESP, M/S 731-96, P.O.B. 109600 Fax: 561.796.4669 West Palm Beach, FL, 33410-9600 Internet: CONDICMA@PWFL.COM =============================================================================== "They can't get you for what you didn't say." -- Calvin Coolidge ===============================================================================