Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Done better redirection help

Jun
127
2
Add a concise example like this in help for redirection and put redirection, sysout, stdout, stderr and syserr indexes in help

rem redirect just stdout to prog.log
javac.exe *.java >prog.log

rem redirect both stdout and stderr to err.log
javac.exe *.java >& err.log

rem redirect stdout to prog.log
javac.exe *.java 1> prog.log

rem redirect stderr to err.log
javac.exe *.java 2> err.log

rem redirect stdout to prog.log and stderr to err.log
javac.exe *.java 1> prog.log 2> err.log
 
Is it javac's fault or tcmd's fault. Just because it comes to a console, it does not mean it comes from STDIO.
 

Similar threads

Back
Top