I'm setting up scripts to do some basic validation of the domain databases and PO databases on a regular basis.

gwadminutil validate returns a 0 regardless of whether or not there was a failure. You need to parse the output to see what the error is, instead of just checking the return value.

I should only need to parse the output if there is a non-zero return.

Comments

  • It took me days to figure that. Now I use
    /usr/sbin/gwadminutil validate $dopath $param 2>&1>/dev/null|grep -c "Error"