send a new value to a variable in a running background process

Hi guys, I have a issue with a background process, I need to update the value of a variable in that process which is running at this time and it will be running for at least 2 days.

Any idea?

I will apreciate your help. regards.

Razziel.

One standard way is to have a "parameter file" in a fixed location.
When you code starts it reads the file, and assigns envrionment variables based on the file contents.

When you want to change a parm, edit the file, then send a signal like SIGHUP SIGUSR1 or whatever is not being blocked for some other purpose. In the code add a trap statement to reread the parm file on receipt of the signal.

Thanks a lot for your answer, the issue is, that the process is already running since yesterday, there is no way that i can make the process reread the param file in this situation?