getenv - unix - fp 5.0.13
Jean-Pierre A. Radley
appl at jpr.com
Tue Mar 9 13:29:54 PST 2004
Enrique Arredondo propounded (on Tue, Mar 09, 2004 at 12:58:53PM -0800):
| HI List,
|
| Why can't I get the Enviroment variable set when running this processing ?
|
| Then: system "FLOGO=`/usr/vsifax/bin/flog -a"<2<"`;export FLOGO"
|
| Then: aa(30,allup)=getenv("FLOGO")
|
| Then: show"@"<aa
|
When you run the system command, you open up a process, and in that
process, you export FLOGO to the environment of all the children of that
process.
When you run getenv from your filePro process, you can only read what it
has in ~its~ environment, and since your filePro process is in no way of
the child of that system process you ran earlier, you don't find FLOGO.
Try filePro's USER command instead:
Off the top of my head (meaning "not tested"):
::uu="/usr/vsifax/bin/flog -a"<2:
::user getflog=uu:
::aa(30,allup)=getflog:
--
JP
More information about the Filepro-list
mailing list