Originally posted by michael_util
So for the script to know about the changes I need to re-include the config file.
Yes, true. "sourcing" is a better word than "Including" in this case. (the reserved word "source" does the same as the dot (.)
So the question is, is this the best way ? If so ... if I do a include on the same config file multiple times ... what happens to the variables and memory ?
I would assume the varaibles would just get update with the new info but would the memory consumption goes up ?
Memory won't go up, unless new
variables are created in the new config file.
Also take care not to have any syntax-errors in your config file, as they would exit the script (you sound like you really
don't want that to happen :-)