Experimental Physics and
| |||||||||||||||
|
Wouldn't it be nice to specify the EPICS_CA_* values firstly through functions in the library rather than environment variables only. And then secondly on a per-connection basis. So you can have seperate setup for every PV connection. ? I'm not against a configuration file type approach, but I'd like to note that for me the environment variables work just fine. They are a simple way to pass parameters to a program. To me, managing the environment variables is fairly simple. For example, on modern Linux distributions, there's an /etc/profile.d directory where I can put an epics.csh and epics.sh that sets up the environment variables the way I want for the computer. User's can override these in their own environment if they want to. Or if there's a need to support a number of environments, it's easy to put the commands to set the environment variables into files and then just source the file containing the desired environment configuration. It's also easy to write a shell script that sets up the environment and then invokes whatever program with a correctly set up environment. So I completely understand that others have different requirements than me, and maybe environment variable configuration doesn't work well for some situations, but I just wanted to note that it works fine for me. Lewis -- J. Lewis Muir Software Engineer CARS/IMCA-CAT
| ||||||||||||||
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |