I'm using the below script to start the dbagent automatically but it doesn't start the agent. interactively running it produces this error:
# ./dbagent start
./dbagent: line 21: -Dappdynamics.agent.logging.dir=
#AGENT_OPTIONS=: command not found
w...