[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xaudio-sdk
Subject:    Re: Python
From:       Bryan Fordham <bfordham () piratech ! net>
Date:       1999-10-02 19:29:18
[Download RAW message or body]

---------------------------------------------------------------------
Email sent to all subscriber or the xaudio-sdk@mpegtv.com mailing list
---------------------------------------------------------------------

-----BEGIN PGP SIGNED MESSAGE-----

On 2 Oct 1999 07:46:04 -0000 nirva@ishiboo.com (Danny Dulai) wrote:

Thanks for your response

> I don't know Python, but the popen() libc function can only be used for
> reading or writing, but not both (portably).
> 
> you need to open it for both reading and writing, so 2 pipes, a fork, and
> an exec is a way to do this. popen() is required to do at least one pipe,
> but not both. you are probably experiencing that limitation. maybe you can
> do the fork and pipes and exec yourself.

The popen2 functions returns 2 file objects, a read and a write.  Looking at
the source to see what popen2 does, it looks to me that it's doing pretty
much what you're saying it needs to.  But, since it's not working I'll see
about doing it manually and see what happens.

thanks again

- --B

-----BEGIN PGP SIGNATURE-----
Version: N/A

iQCVAwUBN/Zc+Q2B1TBOdblFAQHb3gP/XYDa5RfYOlOc9HBhvYIWju1J9BkzAtJB
2F71jBWkVuSKqsDuilQGZH6WSJvEF0AgzEcFAHjHsRJEdwmlTPmQ8/mFzXz38jGi
+iPzwlODjJLEuUYiD1vmfid9wvfSkB2RPdHQ75GPGovzG573zh377EyPeCQcIK0d
94PGpS5G2ic=
=BXtg
-----END PGP SIGNATURE-----

_____________________________________________________________________
To unsubscribe, send a mail to xaudio-sdk-request@mpegtv.com
with the word "unsubscribe" in the BODY of the message

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic