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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,edb329885d962c1d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-04 08:25:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Ada and ASM Date: Thu, 04 Sep 2003 17:07:04 +0200 Organization: AdaCL Message-ID: <2429232.BNEBIGKK0t@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1062689096 00 19085 48gjV1qESCA1l4 030904 15:24:56 X-Complaints-To: usenet-abuse@t-online.de X-ID: JTB6HGZv8e4ovQb73NAnC3wtoxqdlWl8wDhAXXjVY5KYrPyL7jeiYa User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:42147 Date: 2003-09-04T17:07:04+02:00 List-Id: David C. Hoos, Sr. wrote: > ----- Original Message ----- > From: "luiX_" > Newsgroups: comp.lang.ada > To: > Sent: September 04, 2003 2:47 AM > Subject: Ada and ASM >> And another thing more, is there any low-level library in Ada, I would >> like to do a few things that I don't know how. For example execute a >> command from the operating system and getting the response from that >> command. > The package at http://www.adapower.com/reuse/pipes.html > implements a thick Ada binding to the C commands allowing you to call > another program and pipe the output to your Ada program, and/or pipe input > from your Ada program. I would not realy consider it a "thick" binding. Besides, it used the C function popen () and that has a distinct disadvantage: you can either read or write from the external program you can't to both. Personaly I think popen () if a design mistake - espacialy when you see the source: It open both a read and write pipe and then just throws away the one of them. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com