Re: Windows guy lost on Linux System! Setting EUDIR
- Posted by Greg Haberek <ghaberek at gmail.com> Nov 23, 2005
- 521 views
> Says this: "If you wish to manipulate the operating system environment un= der > which the server itself runs, you must use the standard environment > manipulation mechanisms provided by your operating system shell." > > Does that need to be done, or will doing what you suggested work? I don't > think so because the Euphoria interpreter would need to be started before > the CGI could run; the system() call wouldn't happen until it was too lat= e, > right? Huh? No, no, no... They mean if you wanted to *SET* an environment variable (i.e. manipulate) in the shell, you'd need to use system(). You're not trying to reset a shell environment variable, just read it. Think of it in terms of variable scope: a shell envronment variable (PATH, EUDIR) is globally available at the top-level, but a variable set with SetEnv is local only to that CGI script. Get it? ~Greg