I just ran into this myself, but I was using a third party script and so
chose not to edit the script.
I had to use Python's "unbuffered mode" using the PYTHONUNBUFFERED
environment variable.
var env = Object.create( process.env );
env.PYTHONUNBUFFERED = '1';
var ls = spawn('ls', this.args, {
'env': env
});
Thanks!
On Monday, August 23, 2010 at 1:40:46 AM UTC-7, manimal45 wrote:
>
> Hi,
>
> Is it possible to read a child process stdout (or stderr), in real
> time.
> It seems that on('data') event is triggered only when the process is
> done, am I right ?
>
>
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/47462bc9-1836-42e9-8bf8-2f8b45a856d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.