I have a bunch or routers that build tunnels to a central router. I have the details of the tunnels in a separate file, as global variables. I want to get these variables into several different scripts, but I don’t want to duplicate the information.
I’ve tried a few obvious things with no luck at all.
If I /import the file of variables on the command line, they are accepted and I can, for example, :put them.
If I do the exact same /import in a script, the variables are not available to the script. A syntax error is thrown on the first character of the first imported variable’s name.
If I do the import manually, then run a script that refers to the variables, it behaves as if the variables are not there - same syntax errors.
I tried using /system script run , with the variables in the file, and while the script did run, the variables did not remain accessible to the enclosing script.
The weird thing is, all the variables are there in the environment - they just don’t seem to be available to scripts!
How can I do what I want to do? I really don’t want to have to duplicate all these variables.