jerome-pouiller / reredirect

Tool to dynamicly redirect outputs of a running process
MIT License
555 stars 73 forks source link

redirect can not catch the output of nodejs process. #6

Closed guoxiangyang closed 8 years ago

guoxiangyang commented 8 years ago

redirect can not catch the output of nodejs process.

jerome-pouiller commented 8 years ago

Dear @guoxiangyang,

Can you provide a test case that reproduce problem?

Thank you.

guoxiangyang commented 8 years ago
  1. test.js
var i = 0;
setInterval(function() {
    console.log(i); i++
}, 1000)
  1. run it
node test.js

ps ax | grep "test.js" Then use redirect to capture the output, nothing happend.

jerome-pouiller commented 8 years ago

This test case works correctly here. Does reredirect provide any error?