This object is in archive! 

Getting output from CLI?

spencer snyder shared this question 4 years ago
Answered

I am trying to create a new CLI wrapper around nbcli using nodejs. This is not a problem as I spawn cbcli as a child process and it runs successfully. The problem is that if nbcli runs a script that contains a console.log - the output of the script does not get outputted, and I have not found a way for my child process nbcli to capture this and pipe it to stdout. Is this possible?

Replies (1)

photo
1

Could you please post your code here and give the necessary notes?

Leave a Comment
 
Attach a file