export PROJECT=${PROJECT:-"mqbridge"}
Redirecting stderr to stdout: If you are trying to capture output of a command into a file, you will notice the regular output goes into the file, but errors go directly to the screen instead. If you want to capture both, use shell redirection like this (2>&1) after your command.
For example, to have all output go to the screen and to a file, you can do something like this:
run.sh 2>&1 | tee output.log
No comments:
Post a Comment