Reroute Maya Script Editor output to a terminal

Hey everyone,

I’m having a maya file crash on me and I’m trying to pinpoint why.

But first I’ll need to reroute the output of Maya to my terminal. This is where I’m having a problem because I can’t wrap my head around how to do so.

I’ve found tutorials online such as:

http://danostrov.com/2013/02/06/rerouting-the-maya-script-editor-to-a-terminal-and-other-places/

However my CLI and Terminal knowledge isn’t great, so I’m not sure where to place the code he’s mentioned.
Also I’m not sure what is meant by “into the terminal that spawned Maya.”

Thanks in advance!
-Daniel :slight_smile:

Dunno what OS you are on, but you could launch maya from the terminal or commandline and get some output that way.

Use cmds.cmdFileOutput(o=“myfilepath”) than just read the file else where.