Saturday, December 10, 2011

In the Linux, build error logging

    3.6.4 Redirecting Standard Output and Standard Error

    This construct allows both the standard output (file descriptor 1) and the standard error output (file descriptor 2) to be redirected to the file whose name is the expansion of word.
    There are two formats for redirecting standard output and standard error:
    &>word
    and
    >&word
    Of the two forms, the first is preferred. This is semantically equivalent to
    >word 2>&1

    case #1
    # make flag 2&> build.log
    case #2
    # make flag > build.log 2>&1

      No comments: