I don't think my question has been asked before (not exactly anyway, if it has, apologies). I am using Tomcat 7 on CentOS 7.
In my tomcat/bin/setenv.sh file I have set:
export TEST="test"
Then I start tomcat via Terminal by running tomcat/bin/startup.sh
Then I run (not in a script, just in the Terminal after I have executed the Tomcat startup script):
echo $TEST
My question: Should I be able to "echo" the variable TEST? Should I be able to see that the TEST variable has been set to what I want it to be (test)?