Page 1 of 1

how to read stderr with the execute command tool

Posted: Fri Feb 26, 2016 5:16 pm
by web3dprint
Hello, I'm quite new to Switch.

I created a command line tool to prepare some files, since we don't have the scripting package I simply used Node.js as tool and passed it my script.
Image

My tool writes to the output file correctly when there are no problems, but writes to stderr when there are errors. How do I read from stderr and maybe generate some log file?

Re: how to read stderr with the execute command tool

Posted: Fri Feb 26, 2016 9:55 pm
by gabrielp
I don't think you can, but check messages anyway. You can fail if it finds anything in stderr but I don't think you can check the result of stderr in that configurator. I also work with Switch and Node and I can tell you, even though it is much easier to write code in Node, having the ability to drive that code from within the Switch Scripter is very helpful.

Re: how to read stderr with the execute command tool

Posted: Sat Feb 27, 2016 2:17 am
by web3dprint
Thank you for your answer! I already changed my strategy, basically outputting to a different file on error (instead of stderr). Not the same but it works!

Cheers!