Page 1 of 1

persist state of a variable inbetween script runs

Posted: Sat Nov 17, 2018 11:55 pm
by woro
Hi,

I'm implementing a script which checks some local configuration and want to notify an external (rest)api of a change via /tool fetch.
This is working fine already but it should run quite often and I was wondering if I can reduce the api access to just transmit changes. But for this I would need to know the result of the last execution. Is this possible somehow?

Re: persist state of a variable inbetween script runs

Posted: Sun Nov 18, 2018 11:50 pm
by woro
Sorry for the beginner question.
Found it now by using :global variables.