[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: external application output to a buffer
- From: Luca Cavalli <loopback slackit org>
- To: gtk-perl-list gnome org
- Subject: Re: external application output to a buffer
- Date: Sat, 19 Feb 2005 19:22:08 +0100
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]