[Info-Ingres] getenv, NMgtAtt and OME
martin.bowes at ctsu.ox.ac.uk
martin.bowes at ctsu.ox.ac.uk
Tue May 8 04:08:06 CDT 2007
Hi Everyone,
I'm trying to make an OME function that will use a user environment
variable - just like how normal (ie. sane) Ingres can look for user
environment variables such as II_DATE_FORMAT etc...
I thought a simple setting of getenv() would do the trick. It doesn't work
as expected. To be available to the the program, the environment
variable must be set by the ingres session that started the installation -
and only if the variable was set at the time the installation was started.
So I decide to check in the Opensource to see how Ingres does it. In
there I stumbled across the NMgtAt() function. It seemed to do not
much more than what I had tried to do with getenv(), but what the hell, I
thought I'll give it a whirl. The OME functions compiled okay, linked
okay and lo and behold acted in exactly the same manner as the
getenv() version.
So does anyone have any idea why I cant get the damn thing to check
the user environment space at run time - why is it always the ingres
users space and from the environment that started the installation?
Martin Bowes
More information about the Info-Ingres
mailing list