Re: external application output to a buffer



On Sat, 19 Feb 2005 18:50:58 +0100
Stefano Esposito <ragnarok email it> wrote:

Hi all,

i'm trying to redirect the output of an external application called
with ` ` to a buffer. I need that the output is sent to the buffer in
real time, like a console and not when external program's execution is
finished. Any hint?

Thanks a lot

Stefano


Hi,
you can read the output of an executed command opening it with a | after
its name, like this:

open (IN, "runme |");
while (<IN>)
{
    # do something with $_
}
close (IN);

Ciao

-- 
Luca



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]