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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,dc5df8a6faa15259 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-04 08:59:19 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: run external .exe files within an ada program.. Date: Wed, 4 Jul 2001 10:59:11 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <9e5f0431.0107040609.27c9a661@posting.google.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0089_01C10478.5AF88E70" X-Trace: avanie.enst.fr 994262358 88606 137.194.161.2 (4 Jul 2001 15:59:18 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 4 Jul 2001 15:59:18 +0000 (UTC) Cc: To: Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:9433 Date: 2001-07-04T10:59:11-05:00 This is a multi-part message in MIME format. ------=_NextPart_000_0089_01C10478.5AF88E70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit The attachment is an Ada95 binding to the C function "system." The binding is portable across operating systems -- i.e., it's not limited to Win32 platforms. ----- Original Message ----- From: "Henrik M�llberg" Newsgroups: comp.lang.ada To: Sent: July 04, 2001 9:09 AM Subject: run external .exe files within an ada program.. > how do I do that? does it exist any counterparts to "system" in perl or something? > > (I'm developing in win32 environment) > > regards, > Henrik > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > ------=_NextPart_000_0089_01C10478.5AF88E70 Content-Type: application/octet-stream; name="execute_shell_command.adb" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="execute_shell_command.adb" ------------------------------------------------------------------------=0A= with Interfaces.C;=0A= function Execute_Shell_Command (The_Command_String : String)=0A= return Interfaces.C.Int is=0A= package C renames Interfaces.C;=0A= function System (S : C.Char_Array) return C.Int;=0A= pragma Import (C, System, "system");=0A= begin=0A= return System (C.To_C (The_Command_String));=0A= end Execute_Shell_Command;=0A= ------=_NextPart_000_0089_01C10478.5AF88E70--