Hi, I'd like to provide administrative app with a page when you can see 
live logs. To do so I need to execute `tail -f app.log | grep error` and 
get the output chunk by chunk (streaming) as it get added to log file. But 
the problem is:

1. child_process.exec doesn't have streaming, it return only when the child 
process is terminated
2. child_process.spawn does have streaming, but it can execute only 
commands, it can't execute complex expressions like `tail -f app.log | grep 
error`

Is there an easy way to solve it?

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/1440f34a-efb2-4613-af51-b3b5778bfbff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to