Hey,
I run a script that calls upon a simple java program multiple times, telling it to access specific files that make it throw error messages. The script has a few "echo" lines in it, as well. When i run the script like this
Code:
$ sh testErrors.sh > errors.out
only the lines in the script that echo text to the console show up in the file, and the error messages from the java program go to standard output and not the file. How can i make all output to the console get redirected to that file?
Thanks