Kbase P101511: Is it possible to set UNIX environment variables using 4GL?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
Status: Unverified
GOAL:
Is it possible to set UNIX environment variables using 4GL ?
FACT(s) (Environment):
UNIX
FIX:
It is not possible. Even if it is correct to write a statement like :
UNIX "export MYVAR='newValue'" ,
using the 4GL statements UNIX or OS-COMMAND will only modify the value in the session created specifically by these commands, which is a child session from the parent session starting the 4GL code. Therefore, the values modified won't apply to the parent session.
An alternative can be writing files with the values desired and using them from UNIX scripts.