Re: Inline::Python Python child process stdout redirection

[email protected] (David Mertens)
Newsgroups perl.inline
Message-ID <CA+4ieYVuXaBFexxRbxTYBtKN3xCLPG1DC5fNiL9+iZz-6ex5pQ@mail.gmail.com>
I can say that it is *not* possible to generically capture stdout from
Inline::C (a la printf), as far as I know. I would not expect to be able to
do it with Python, since that's a C library as far as Perl is concerned. If
you can redirect the output to a file handle, that's not too big a
surprise, but already better than I would have expected.

David
On Mar 19, 2013 10:51 AM, "Chris Nighswonger" <[email protected]>
wrote:

> On Tue, Mar 19, 2013 at 3:15 AM, Stefan Seifert <[email protected]>
> wrote:
>
> > On Monday 18 March 2013 21:10:24 Chris Nighswonger wrote:> Is
> > > there a way to redirect the stdout of the resulting child process?
> >
> > It's the same stdout, you use in Perl.
> >
>
> I'm sorry: I should have worded my question directly. Here is what I need
> to do:
>
> open STDOUT, ">", \$var
>
> So long as I have STDOUT write to a file, things work fine. when attempting
> to write to a variable, Perl borks.
>
> Kind Regards,
> Chris
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.