1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

better redirection help

Discussion in 'Suggestions' started by Roedy, Jun 26, 2014.

  1. Roedy

    Joined:
    Jun 8, 2008
    Messages:
    120
    Likes Received:
    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
     
    Charles G likes this.
  2. w_krieger

    Joined:
    Nov 2, 2008
    Messages:
    175
    Likes Received:
    0
    Is it javac's fault or tcmd's fault. Just because it comes to a console, it does not mean it comes from STDIO.
     

Share This Page