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-Thread: a07f3367d7,d1a2aff784715896 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news.mixmin.net!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Start a Windows process and get its text output Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Sat, 6 Feb 2010 22:01:50 +0100 Message-ID: NNTP-Posting-Date: 06 Feb 2010 22:01:43 CET NNTP-Posting-Host: 3a5611c2.newsspool4.arcor-online.net X-Trace: DXC=O;Yj<;Shlbgf1oJaJ0@dmg4IUK On Sat, 6 Feb 2010 09:39:30 -0800 (PST), Gautier write-only wrote: > Does someone have some nice open source to do that ? > I began to cannibalize working code from AdaGIDE, but it is a bit > messy. > If I can save a couple of hours to make a good package out of it, it > would be cool... > TIA > > [ the goal is to have a reusable object-oriented component; its first > usage would be in the GWenerator tool for launching gnatmake or a > resource compiler and display its output in boxes ] For same purpose (launching gprbuild and catching the output and error streams) I used GTK+ bindings. I considered GNAT.OS_Lib, but dropped that for various reasons. Since GTK+ API are quite tricky when it comes to process spawning, I built thicker bindings on top. Spawning a process with pipes: http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#10.1 and with text buffers instead of pipes http://www.dmitry-kazakov.de/ada/gtkada_contributions.htm#10.2 -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de