STDOUT redirection to a file does not work if Groovy script run directly from command line (.groovy in PATHEXT)
I've updated the title, please see update below for the reason. I have asked this question on Stackoverflow, but still didn't receive an answer. Groovy: redirect stdout to a file does not work. ...
Either I'm doing something silly or Sun is. How come something like: java -version > version.txt Still prints out to stdout and leaves version.txt empty? I'm checking out the exit code, and it's ...