0
votes
0answers
702 views

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. ...
2
votes
3answers
890 views

java -version doesn't write to stdout?

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 ...