diff --git a/source/agent-remote/_allservicesstatus.sh b/source/agent-remote/_allservicesstatus.sh index 6b0d52a..fa53e40 100755 --- a/source/agent-remote/_allservicesstatus.sh +++ b/source/agent-remote/_allservicesstatus.sh @@ -9,6 +9,11 @@ # Get all services on the server SCRIPT_DIR="$(dirname "$0")" +# export the passed variables from C++, so subshell can use them. +export AGENT_PATH="${AGENT_PATH}" +export HOST_NAME="${HOST_NAME}" +export SERVER="${SERVER}" + # //------------------------------------------------------------------------------------------------ # // remote paths # // DROPSHELL_DIR