Redirecting ray3 output


ray3.exe outputs to STDERR, so you cannot simply do this:

ray3 -v 6 test.mi > out.txt

You have to do something like this:

ray3 -v 6 test.mi 2>out.txt

In the above command, 2>out.txt redirects STDERR to the file out.txt.

Or you can do this, which redirects all output (STDOUT and STDERR) to out.txt:

ray3 -v 6 test.mi >out.txt 2>&1

References:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s