Based on the example here, I'm trying to spawn a ruby process (v1.8.7) from Node.js (v0.4.8). A process and an empty log file are created, but nothing happens until I kill it. If I leave out the STDIN.each_line bit, the code runs fine.
I suspect something stdin doesn't finish so ruby is still waiting for input. Perhaps ruby.stdin.write("ping\n"); doesn't do what I think it should do?