On Thu, May 13, 2010 at 1:21 AM, robert Key <robertgordon...@yahoo.com>wrote:

> Hi,
>  I want to capture UNBUFFERED output from a C programme and then control it
> depending on its output. Problem is nothing seems to unbufferd the output
> from the C programme. Only when the child has finished executing do I get
> all the output which is too late.
>

See if the Expect<http://search.cpan.org/%7Ergiersig/Expect-1.21/Expect.pod>or
Expect::Simple<http://search.cpan.org/%7Edjerius/Expect-Simple-0.04/lib/Expect/Simple.pm>modules
will work. They let Perl control a child process using standard
input and output.

-- 
Robert Wohlfarth

Reply via email to