Pages

Tuesday, October 29, 2013

Bash serial execution of commands and exit on critical

If you want  to executue the shell commands serially in bash script but also want to keep checking and exit if  any of the command fails

set this at the top of your script

set -e
set -o pipefail

No comments:

Post a Comment