sh: test: argument expected
Oracheck does not execute the scritps in the second node of the RAC
Error Code:
Warning: Permanently added 'rac2,192.168.0.91' (RSA) to the list of known hosts.
sh: test: argument expected
sh: test: argument expected
*************
I Have added in both nodes the following line "oracle ALL=(root) NOPASSWD:$HOME/root_orachk.sh" in "/usr/local/etc/sudoers"
*******************
I have installed the version 4.3 of shell in "/opt/csw/bin/bash" (in both nodes)
I have modified the first line of "orachk":
Before " *#!/bin/env bash "
now " #!/bin/env /opt/csw/bin/bash"
The value of the varible $SHELL is '/bin/sh'