Re: Question about accessing shell variables
Posted in 1996
Lee J. Krawczyk (yetta@imap1.asu.edu) wrote: : We are new to Informix and are wondering if there is a way to access : shell varibles without calling a C routine to return the value. : For example, $HOME is set in .profile and I would like to get the value : of $HOME into my program. : Any suggestions? Thanks. If using 4GL, see fgl_getenv(). For your specific example: DEFINE lhome CHAR(80) ... LET lhome = fgl_getenv("HOME") ======================================================================= Dennis J. Pimple dennisp@informix.com Opinions expressed Principal Consultant -------------------- are mine, and do not Informix Software Inc Voice: 303-850-0210 necessarily reflect Denver Colorado USA Fax: 303-779-4025 those of my employer.