PxPlus User Forum

Main Board => Discussions => Thin Client/WindX => Topic started by: GerardS on July 16, 2019, 07:41:05 AM

Title: How to set environment variables when using the Application Server
Post by: GerardS on July 16, 2019, 07:41:05 AM
For a customer we have installed unixodbc for MS SQL Server.  This works great when using a  host/client server interface. We added the following lines to the startscript  "starthost".

# Set ODBC variables
export ODBCINI=/etc/odbc.ini
export ODBCSYSINI=/etc
export LD_LIBRARY_PATH=.....

Our customer however uses "Application Server" to start their application.
Where can we set the environment variables when  using "Application Server"?

Gerard

Title: Re: How to set environment variables when using the Application Server
Post by: Mike King on July 16, 2019, 10:56:57 AM
You would need to set the environment variables in the process that runs the Application Server so that they cascade down to the individual sub-processes.