|
5/18/2011 12:34:33 PM
|
JP Posts 3
|
I am testing ReconnAct. The only I want is set the clientip and clientname variable. In my Kix script I start ReconnAct without options. Every time I log off and log on to a session the variables contain information from the prevous session. How to fix this?
|
|
5/18/2011 10:04:24 PM
|
Arnout Grootveld — Immidio Posts 269
|
JP,
When we change the values of the two CURRENT_ environment variables, we broadcast this change across the system, but not all running processes take that notification into account. Therefore, in an existing process you might still see the old values.
If you open a new command prompt after reconnecting from another system, do you see the changes then?
-- Arnout.
|
|
5/23/2011 10:33:15 AM
|
JP Posts 3
|
Arnout,
You are right, when open a cmd and type set we see the correct data. The problem is the Kix login script is having the wrong data. After being some days out of office the Kix script still show the data from a few days before. My Terminal servers (Citrix server) are rebooting every day. It seems the data of the CURRENT_ variables is stored somewhere? Is it possible to force the changes to the Kix script? We need to use the correct data in the script.
|
|
5/23/2011 11:11:32 AM
|
Arnout Grootveld — Immidio Posts 269
|
JP,
The environment variables are stored in the registry (as REG_SZ values under the HKCU\Environment key). Maybe you can directly read them from the registry in your Kix script?
-- Arnout.
|
|
5/23/2011 2:00:39 PM
|
JP Posts 3
|
Arnout,
Thanks a lot, this is working fine.
For other Kix users, I added this code to my script:
RUN "ReconnAct.exe" $ClientIP = ReadValue("HKEY_CURRENT_USER\Environment", "CURRENT_CLIENTIP") $ClientNAME = ReadValue("HKEY_CURRENT_USER\Environment", "CURRENT_CLIENTNAME")
Now You can use the $ClientIP and $ClientNAME variables in Your script
JP
|
|
pages:
1 |