netcat is not to be interpreted by shell

reviewed-by: Talluri
This commit is contained in:
Prasanna Santhanam 2012-08-22 14:57:36 +05:30
parent e08ea83a60
commit ab9257c91b
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ if [[ $ostypeid == "" ]]; then
exit 2
fi
$(nc -z $MGMT_SVR 8096)
nc -z $MGMT_SVR 8096
if [[ $? -ne 0 ]]; then
echo "$MGMT_SVR doesn't have port 8096 open"
exit 2