Quote:
Originally Posted by
michaelrozar17
So standard output here is "update failed" ..? Am i correct or wot does standard output mean.
By tradition most processes are started with three open files: Standard input at FD 0, standard output at FD 1, and standard error at FD 2. When you run a process in a shell without redirecting anything, stdin reads from the keyboard, stdout writes to the terminal screen, and stderr also writes to the terminal screen.
echo "hello world" prints "hello world" to standard output.
For error messages, we want to print to standard error, so that the error messages will show up even if standard out has been redirected, and so that error messages don't get shoved where they don't belong, like in the middle of a big flat file you're transforming or something.
So we print to stderr, by redirecting FD 1 into FD 2.