You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm running a command that starts a program that prints to stdout over time.
I want to print out this output while it is happening.
if I use cmd.get() I will get the output only after the program has finished.
If I use cmd.run() I don't get any output and I have no way to know when the program finished.
how should I do that?
The text was updated successfully, but these errors were encountered:
I wrote the issue after strugglenig with this whole day and solve it 5 minutes after writing it...
Anyway, the answer would be: cmd.get(command,callback function).stdout.on('data', (data) => console.log(data) );
Hi,
I'm running a command that starts a program that prints to stdout over time.
I want to print out this output while it is happening.
if I use cmd.get() I will get the output only after the program has finished.
If I use cmd.run() I don't get any output and I have no way to know when the program finished.
how should I do that?
The text was updated successfully, but these errors were encountered: