Wednesday 23 January 2019

How to vssh into vagrant, run commands, and read the stdout?

I've been messing around with the 'child-process' module and trying to read the stdout. I've messed around with spawn and exec, but when I attempt to ssh into vagrant the output from vagrant doesn't return and it doesn't seem possible to execute additional commands within the context of vagrant. Not sure if this is making any sense at all... anyone familiar with running shell scripts from inside node with the intent to process whatever comes back via stdout?

Submitted January 24, 2019 at 06:31AM by SentFromBelow

No comments:

Post a Comment