I have a set of scripts for race administration that are being employed by different users. The code was developed to run in the users own directory (all directories are on the same Unix server). Each user has a locally modifiable configuration file that is called ('use') by the scripts but they presently have to have their own copies of the scripts as well.
I'd now like to be able to put the common scripts into a single location (inaccessible to the different users) and let all configuration, reads, and writes be constrained to the directory of their individual 'operating' htmls.
The "hitch in the gitalong" is 'use', 'read', and 'write' statements in the common code. I'm seeking a simple way to "prefix" the individual directory location to the calls... can anyone suggest an 'easy fix'? (e.g. I do require the 'referrer' variable to ensure the code is only accessed from the server html so perhaps some brief code to dissect that handle might be a possibity?)
Thanks
I'd now like to be able to put the common scripts into a single location (inaccessible to the different users) and let all configuration, reads, and writes be constrained to the directory of their individual 'operating' htmls.
The "hitch in the gitalong" is 'use', 'read', and 'write' statements in the common code. I'm seeking a simple way to "prefix" the individual directory location to the calls... can anyone suggest an 'easy fix'? (e.g. I do require the 'referrer' variable to ensure the code is only accessed from the server html so perhaps some brief code to dissect that handle might be a possibity?)
Thanks