On Friday, October 10, 2014 1:46:41 AM UTC-4, cesdaile wrote: > > What I meant by 'choking' is that I am seeing a premature close on the > stream when the output exceeds approx. 400 lines. Smaller output sizes seem > to complete reliably and I can parse the entire command output without any > troubles. >
I haven't experienced that at all. Are you using the latest version of ssh2? Also, I don't think you need to use `shell()` for your purposes. I think `exec()` should work fine, you just have to prefix your actual command with "no paging;" (assuming that is a valid remote command) since it seems like that's what you're currently trying to do. Your script should be something as simple as this (substituting the 'cat /var/log/messages' with your `cmd` variable): https://gist.github.com/anonymous/1a786c62927c632a23ed -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/be2dccdb-77cc-42a5-b082-9787f47f2a35%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
