Brad,
Ok. I’ve issued a 3rd commit which does what you’ve asked. The change is to line 62 of run.cfc which adds the stderr redirection to stdout in the commandArray for bash.
`
commandArray = [ nativeShell, ‘-i’, ‘-c’, arguments.command & ’ 2>&1 && ( exit $? > /dev/null )’ ];
`
This seems to hit the middle ground we are looking for. Executing your jar and redirecting the output to a file in commandBox puts both streams in the file and nothing on the screen. With the changes from the other commits, nothing should change for Windows users. They still get “.redirectErrorStream(true)”.
Let me know if you see any issues with that.
Thanks again for the awesome support and expertise, Brad! I appreciate you taking the time to explain all of this to me and providing the handy jar file which was monumental in troubleshooting and understanding the behavior.
–Joel