Good morning,
I am experiencing different behaviour in my Cloverleaf running on a Linux 19.1.x Cluster compared to my Cloverleafs running on Linux 19.1x Standalone server and my Windows 6.1.x Standalone servers.
I have a tcl script that has the following two lines:
global env
set servername $env(HOSTNAME)
This tcl script works fine on:
However, when the my thread on the Cloverleaf 19.1.x Linux Cluster tries to execute the tcl script, I get the following error
‘can’t read “env(HOSTNAME)”: no such variable’
I have also tried the following command:
set servername “$::env(HOSTNAME)”
which resulted in this error:
result = ‘can’t read “::env(HOSTNAME)”: no such variable’
This command however does work when the thread calls my tcl script
set servername [info hostname]
When I execute the following command in hcitcl
parray env
I can see the variable “env(HOSTNAME)” in the output but when I add “parray env” to my tcl script, I do not see “env(HOSTNAME)” in the process log which explains my tcl error.
Can anybody shed some light on why the env(HOSTNAME) is not defined when my thread calls the tcl script on my Cloverleaf 19.1.x Linux cluster but is defined on the other Cloverleaf servers and is defined when running hcitcl?
Thanks,
Erik