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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,35abf65fde40e320 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!v25g2000yqk.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: GNAT.Expect on Windows, without terminal window Date: Sun, 14 Feb 2010 05:38:36 -0800 (PST) Organization: http://groups.google.com Message-ID: <52dac0bf-a160-4c17-82f4-023791c4399a@v25g2000yqk.googlegroups.com> References: NNTP-Posting-Host: 62.202.123.144 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1266154716 9634 127.0.0.1 (14 Feb 2010 13:38:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 14 Feb 2010 13:38:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v25g2000yqk.googlegroups.com; posting-host=62.202.123.144; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20100104 SeaMonkey/2.0.2,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9214 Date: 2010-02-14T05:38:36-08:00 List-Id: Finally, I went on with a specific MS Windows solution. The usage is as simple as: -- with Ada.Text_IO; procedure Output_a_line(l: String) is begin Ada.Text_IO.Put_Line('[' & l & ']'); end; -- with Output_a_line, Windows_pipes; procedure Win_Pipe_test is use Windows_pipes; p: Piped_process; begin Start(p, "cmd.exe /c dir", ".", Output_a_line'Access); while Alive(p) loop Check_progress(p); end loop; end Win_Pipe_test; The code is there... http://gnavi.svn.sourceforge.net/viewvc/gnavi/gwenerator/src/Windows_pipes.ads?view=markup&pathrev=87 ______________________________________________________________ Gautier's Ada programming -- http://gautiersblog.blogspot.com/