[solved] Issues with Ubuntu SSH Execute Script

Viewed 0

the echo commands (PA_Details, PA_FireActions) must be on a new line ... and for some unknown reason, the script was not being interpreted that way .... so we had to manually had a return / new line using rn

GLUSTERD=$(systemctl is-active glusterd)

displaying details to to console

echo -e "rnPA_Details("Testing whether glusterd is active or not via ssh: ${GLUSTERD}")"

if not active then in problem state

if [ ${GLUSTERD} != "active" ]; then echo -e "rnPA_FireActions(true)" fi

0 Answers
Related