0

I have some code in Python and I am invoking the Python code from Node.js. I am able to get the code executed, however I am stuck with getting the data streamed from Python to node.js.

Help me in identifying how to stream the data to node.js.

P.S I am new to both Python and Node.js

1
  • Please post some code so we can see how far you gotten so that you can get a concrete example. Commented Aug 9, 2012 at 5:58

1 Answer 1

1

How are you doing this right now? It sounds like you should be using the Child Process libraries.

Are you using exec or spawn? They both work slightly differently, but they have either a callback (exec) or events that fire when data is received (spawn).

The examples on that page are pretty explicit. Is there something specific in those examples that you don't understand? Is there some sample code that you could provide to clarify your problem?

Sign up to request clarification or add additional context in comments.

1 Comment

I am using spawn and now i am getting the data. It is working pretty well with just print itself. Thanks for your help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.