[prev] [index] [next]

C execution: Redirect

The streams stdin, stdout, stderr can be redirected
  • redirecting stdin

    prompt$ myprog < input.data
    

  • redirecting stdout

    prompt$ myprog > output.data
    

  • redirecting stderr

    prompt$ myprog 2> error.data