On Wed, Mar 20, 2013 at 12:29 PM, Chris Nighswonger <
cnighswon...@foundations.edu> wrote:
> On Tue, Mar 19, 2013 at 2:58 PM, Stefan Seifert wrote:
>
>> Ok, that would not work, since this is just some Perl trickery and
>> nothing
>> really gets written to any file handle.
>> But you can use just
On Tue, Mar 19, 2013 at 2:58 PM, Stefan Seifert wrote:
> Ok, that would not work, since this is just some Perl trickery and
> nothing
> really gets written to any file handle.
> But you can use just the same trick in Python:
>
>
This is probably a question for another list, so feel free to say s
On Tuesday 19 March 2013 10:51:08 Chris Nighswonger wrote:
> 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.
Ok, t
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,
On Tue, Mar 19, 2013 at 3:15 AM, Stefan Seifert 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
On Monday 18 March 2013 21:10:24 Chris Nighswonger wrote:
> I'm using Inline::Python to call a Python function which writes to stdout.
> I'm guessing that Inline::Python forks at some point to run Python.
No, Inline::Python uses an embedded Python interpreter to run Python code.
> Is
> there a w
Hi all,
I'm using Inline::Python to call a Python function which writes to stdout.
I'm guessing that Inline::Python forks at some point to run Python. Is
there a way to redirect the stdout of the resulting child process? I'm
(again) guessing that there is no way of knowing the process id in time t