I have a script in rc2.d (S80ostore4) this sets some environment variables and then runs the Ostore license manager. On my old system, I can type echo $OS_ROOTDIR and I get /opt/ODI/OS5.0/sunpro.
When I type this on my new system, The $OS_ROOTDIR returns a blank line.
It is the same script in /etc/rc2.d on both machines. What are some reason for the new machine to not keep exported variables???
Can I get some help in making these exported variables maintain their value throughout all the new session.