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-7-bit X-Google-Thread: 103376,34b29f7884ececc8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-14 11:41:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!usenet-fr.net!enst.fr!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: Ada & Scripting Date: Wed, 14 May 2003 13:51:13 -0500 Organization: ENST, France Message-ID: References: <1352155.Gs21sEmXl2@linux1.krischik.com> <1419124.iFzRYCrhqu@linux1.krischik.com> NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1052937682 15224 137.194.161.2 (14 May 2003 18:41:22 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 14 May 2003 18:41:22 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020828 X-Accept-Language: en-us X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:37330 Date: 2003-05-14T13:51:13-05:00 krischik@users.sourceforge.net: > It is tricky since C function 'pipe' can only do one of the two. The method is to use two pipes, one hooked to stdin, one to stdout and if you are so inclined, a third pipe for stderr. 1) This is quite doable in Ada with roll-your-own bindings. 2) If you use GNAT, look at the package GNAT.Expect Also you might look at AdaPower for the 'popen' bindings. -- ------------------------------------------------- -- Merge vertically for real address -- -- s n p @ t . o -- k i e k c c m -------------------------------------------------