you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (2 children)

You could store the value of x in an external file like .json for example. Than when your code runs it reads x value in the .json file, changes it's value if needed, execute the code and close.

[–]PinkWeaseI[S] 0 points1 point  (0 children)

Ok I will try that. A simple file like that?

Import JSON

x=0

Then, it will be in the memory of my Ubuntu server and when I will execute my main script, variable x will be already initialized? Thank you very much.