rapier1 has asked for the wisdom of the Perl Monks concerning the following question:
The funtion (swig wrapped remember) can send information to STDOUT. I want to take this and redirect STDOUT to various sockets. To do this I've tried a number of differeent methods including capturing STDOUT using IO::Scalar and tie, binding STDOUT to the socket using fileno and open STDOUT, ">&=$fd"; and so forth all to no avail.
I think I determined that the problem is that SWIG isn't actually piping its STDOUT back into perl's STDOUT. So I can do anything I like STDOUT in perl and it will have no effect because these environmental changes are not being inherited by the function/c API.
Does this sound likely? If so can anyone think of a way to get around this that doesn't involve rewriting the API?
Chris
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: STDOUT and SWIG
by tye (Sage) on Aug 21, 2001 at 00:01 UTC | |
by rapier1 (Novice) on Aug 21, 2001 at 00:57 UTC | |
by tye (Sage) on Aug 21, 2001 at 22:59 UTC | |
|
Re: STDOUT and SWIG
by Cine (Friar) on Aug 20, 2001 at 23:25 UTC |