You currently can't set environment variables for STAFEXECPROXY. Please
open a feauture for this support
(http://sourceforge.net/tracker/?func=add&group_id=33142&atid=407384). We
should be able to allow something like OPTION EXECPROXYENV=.... and then
pass the environment variables in the the STAFProcessStartInfoLevel1
structure when calling STAFProcessStart2 to start the STAFExecProxy
executable.
Thanks,
David
David Bender
STAF/STAX Development
IBM Software Group, WPLC
11501 Burnet Rd.
Bldg. 903-5B002
Austin, TX 78758-3400
Phone (T/L): 1-512-286-5315 (363-5315)
ITN: 23635315
Email: bda...@us.ibm.com
"Semih Cemiloglu" <semih.cemilo...@nec.com.au>
08/05/2009 01:56 AM
Please respond to
semih.cemilo...@nec.com.au
To
<staf-users@lists.sourceforge.net>
cc
Subject
[staf-users] Setting environment variable before STAFExecProxy runs
Dear List,
I have a service definition in STAF.cfg similar to this one:
SERVICE PSample LIBRARY STAFEXECPROXY EXECUTE DeviceService OPTION
PROXYLIBRARY=PLSTAF OPTION USELIB=/home/semihc/local/staf/services
I want to set an environment variable BEFORE STAFExecProxy or PLSTAF runs
but AFTER STAFProc has started. More specifically, I would like to set
LD_PRELOAD variable as
LD_PRELOAD=libperl.so
So that I can circumvent a Perl start-up error with PLSTAF.
I know that I can set LD_PRELOAD before running STAFProc but I don't want
to
do this:
LD_PRELOAD=libperl.so /home/semihc/local/staf/bin/STAFProc &
As this setting would propagate to all sub-processes of STAFProc including
the ones created by PROCESS service.
The system I'm using is Sun Solaris v10 on sparc platform. Staf version is
3.3.4 compiled with Sun CC.
LD_PRELOAD setting on Sun "pre-loads" dynamic/shared libraries into
process
space before control is relinquished into the application.
Any help or idea will be much appreciated.
Thanks, regards,
Semih Cemiloglu
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users