Ivo <[EMAIL PROTECTED]> wrote:
> Thomas Bellman wrote:
>> However, the os.read() function will only read what is currently
>> available. Note, though, that os.read() does not do line-based
>> I/O, so depending on the timing you can get incomplete lines, or
>> multiple lines in one read.
>>
>>
Thomas Bellman wrote:
> [EMAIL PROTECTED] wrote:
>
>> try:
>> test = Popen(test_path,
>> stdout=PIPE,
>> stderr=PIPE,
>> close_fds=True,
>> env=
Christian Heimes <[EMAIL PROTECTED]> writes:
> Thomas Bellman wrote:
>> The readlines() method will read until it reaches end of file (or
>> an error occurs), not just what is available at the moment. You
>> can see that for your self by running:
> Bad idea ;)
Why is it a bad idea to see how th
On 4 Ún, 11:49, Thomas Bellman <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > try:
> > test = Popen(test_path,
> > stdout=PIPE,
> > stderr=PIPE,
> > close_fds=True,
> >
Thomas Bellman wrote:
> The readlines() method will read until it reaches end of file (or
> an error occurs), not just what is available at the moment. You
> can see that for your self by running:
Bad idea ;)
readlines() on a subprocess Popen instance will block when you PIPE more
than one strea
[EMAIL PROTECTED] wrote:
> try:
> test = Popen(test_path,
> stdout=PIPE,
> stderr=PIPE,
> close_fds=True,
> env=test_environ)
> whi