RIAEvangelist/node-cmd

Silence log output?

kokujin opened this issue · 8 comments

Is it possible to stop node-cmd from outputting the scripts that it runs? Thanks

I have not seen this behavior, can you provide a short example? Thanks!

no response so closing.

maybe something like cmd.runSync('ls nonExistingDir') would also print on standard output (beside data returned by runSync )

edit: what you can do is redirect standard output or error output to /dev/null
https://unix.stackexchange.com/a/82699

OK, I'll check it out.

The trick is making that work for linux, mac and windows.

the other thing is that retrieving the output is a desired function of the module.

so I think the best way to get what you want would be to spin jup a child process that runs the node cmd command, or running it as a daemon.

thoughts?

bump*