Hi,
I would want run “script1” in “script2”, with
script1
:global nbtel {"a";"b"}
script2
doesn’t work
script1
doesn’t work
/system script run script1
Could you help me ?
Best regard
Hi,
I would want run “script1” in “script2”, with
script1
:global nbtel {"a";"b"}
script2
doesn’t work
script1
doesn’t work
/system script run script1
Could you help me ?
Best regard
What exactly is not working? Global variables defined in script will be defined, but will not be recognized in other scripts why they are not allocated into them.
An example:
Script script1:
:global v “test”
/system script run script2
Script script2:
:log info $v
This will not work. Second script will not recognize variable.
You must use this instead:
:global v
:log info $v
If problem is elsewhere, then make sure that user which executes script has all the permissions required by scripts. Also make sure that script1 has at least the same permissions as the script2.
Hi strods,
The problem came from the rights that was not identical between the two scripts. Romon’s right was missing on one of them.
Thanks for your help