Python process forked by NodeJS - Alternative to process.send() for Python?
问题 I'm forking a Python script with NodeJS and when forked, by default, NodeJS create an IPC between this new process and the parent. With NodeJS, to send message from a child to the parent I do process.send({msg : 'toto'}) How can I do that with Python ? http://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options 回答1: Ok I found it, finally is quite easy. It's only about writing on the right file descriptor. On the NodeJS side parameter, spawn your script