I have an application running under Fedora Core 2.
This application is designed to communicate with another platform.
To run properly, this application needs several global variables to be set (IP address of destination platform).
My variable has the form
REMOTECPU=aaa.bbb.ccc.ddd (IP address)
MYCPU=aaa.bbb.ccc.ddd (IP address)
When I logon, set the global variables and start the application, everything runs fine.
For security reasons and to have it always ready (i.e. after a power failure), I would like the application start automatically at Linux boot WITHOUT having to logon.
I found how to start my daemon automatically (putting my application in /etc/rc.local) and it starts, but id does not communicate with my REMOTECPU because the global variables are not set.
I also tried to set my variables into /etc/bashrc and when I logon, the application works fine. BUT I have to logon and I do not want to do that.
Does someone out there have a solution to my problem (set global variables WITHOUT logging).