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