(Sorry about my English, is translated by google.)
I have problem with global variables, once defined, randomly disappear from the environment, I could not find a pattern that I serve as a diagnosis, simply disappear. My platform is a RB450 version V4.3.
Historically there was a problem with global variable that has already been solved, was not reflected these changes if different approaches were modified, (console / script schelude), namely whether it was created by a script could not be change its value via the console and vice versa, I suppose for user rights problems, I assumed that the script ran as root and as the admin console. This was solved but the disappearance in setting global variables is a problem that I think is dragged from earlier versions (v3.2), I discover the circumstances in which it occurs.
Ej
Define a script pair Initialize variables
name=“DefVariables” owner=“admin” … source=
:global EstadoTip1;
:global EstadoTip2;
:global ContadorUP;
:global EstadoTrafico;
:global ContadorPocoTrafico1;
:global ContadorPocoTrafico2;
the minutes of starting the OS to run the script scheluder “DefVariables” if I do a:
[admin@BC] > :environment print
“EstadoTip1”=0
“EstadoTip2”=0
“ContadorUP”=0
“EstadoTrafico”=[:nothing]
“ContadorPocoTrafico1”=0
“ContadorPocoTrafico2”=0
[admin@BC] >
But after the variable minutes or hours away
[admin@BC] > :environment print
[admin@BC] >
Where were … !!!
Does anyone have any idea if it’s a bug or I’m just goofing on something? may be a memory management error, you lose a pointer or something.
thanks