Job started with wrong PATH environment variable

Paul Watson (101 posts)
May 22, 2015 08:10 AM
Accepted Answer

We have been running adTempus 3.0.8 for some time. Sometime within the last week or two, it appears that when a job starts it does not have the expected PATH variable value. It contains some different value.

Does adTempus have any capability to start a job with a pre-determined PATH or environment?

Just a .bat script that echoes %PATH% shows the problem.

When run from a cmd shell the PATH variable is:

D:\DW_Devl\Extracts\Vendors\test>DumpEnvironment.bat D:\Oracle\ora1123Client\bin;D:\Oracle32bit\ora1123Client\bin;C:\PROGRA~2\PuTTY;D:\PROGRAM FILES\DMEXPRESS\PROGRAMS;...

When run from an adTempus job the following PATH is set.

C:\PROGRA~2\PuTTY;D:\PROGRAM FILES\DMEXPRESS\PROGRAMS;D:\ORACLE\CLIENT_11203\BIN;D:\ORACLE\CLIENT_11203\PERL\BIN;D:\ORACLE32BIT\ORA112CLIENT;...

Bill Staff (604 posts)
May 22, 2015 09:55 AM
Accepted Answer
If the Path variable has been changed at the System level, adTempus may not be seeing the new values due to the way Windows services work. Try restarting the adTempus service and see if it produces the correct results then.
Paul Watson (101 posts)
May 22, 2015 10:05 AM
Accepted Answer
Thanks for the reply, Bill. The article at http://www.arcanadev.com/support/kb/K00000203.aspx suggests that a reboot is required. Is a service stop/start all that is required?
Paul Watson (101 posts)
May 22, 2015 10:40 AM
Accepted Answer

Yes, stopping and starting the adTempus service anew corrects the situation.

Does the adTempus 4 service know when the system PATH is changed and update itself?

You might want to change the KB article to say that stop/start of the service will correct the situation. That would be good to try before a system reboot. Windows already has too many reasons to reboot.

Bill Staff (604 posts)
May 22, 2015 02:25 PM
Accepted Answer

The article has been updated.

The behavior is no different in adTempus 4.

Paul Watson (101 posts)
May 22, 2015 02:50 PM
Accepted Answer
I have not done it from a Windows service, but I would expect that the services could respond to a WM_SETTINGCHANGE message. Please forward to development.

Replies are disabled for this topic.