Global variables

ROS 3.29:
Declared a global variable in one script ie :
:global sSerial [/system routerboard get serial-number]

Doing a env print after script execution show that sSerial is there and has the correct value. However, using this global from another script fails to work.

ie. script2 source :
:put $sSerial

From command line doing a :put $sSerial also works correctly.

What am I doing wrong ?

you need to define the variable in a new script to have it suck in the value.

:global sSerial
then
:put $sSerial

Just tried that, and it works.
Many thanks changeip !