Re: How can i get an env. variable
Posted in 1997
Mark Heeren wrote: > > Art S. Kagel wrote: > > > > Christian Hernoux wrote: > > > > > > I use i4gl ver. 4.11.UC4. How can i get an env. variable ? > > > Does exist a fg??? fonction ? > > > > There is the function fgl_getenv( "ENVVAR" ) but I think that it was > > This works well unless you want to get a special variable like '$$' > the current PID. Anyone have a solution to that? I prefer to not > create a 'c' link That's because $$ is not in your environment but is a builtin in sh, ksh and bash, among other shells. Even the "C" routine I posted cannot get that one for you. However, since $$ is the current process's PID you can build a similar "C" wrapper to return data from getpid(). Sorry no such function exists. Art S. Kagel