var i = 1; setInterval(function() { i += 1; process.stderr.write(`@F ${i} 2 3 4\n`); }, 100); process.stdin.on('data', function(data) { process.stdout.write(`GOT MESSAGE ${data}`); });