If your program needs access to variables that persist from one invocation to the next (and are optionally modified between invocations) there is a nice merlyn article on just that subject!
Comment on Re: How to share global variable between two program instances ??