0

Like the title says, I want to dynamically update variable values in a program from another program. For instance:

  1. Master pulls variable of 1, from slave program
  2. Master updates variable from 1 to 2.
  3. Master saves new value to slave
  4. Slave runs with new variable.

1 Answer 1

1

This is not a Raspberry Pi question. You should study the various techniques for passing data between programs:

  • Sockets
  • Pipes
  • Shared Memory.

I'm sure you can find examples written in Python.

1
  • Sorry, I'm actually trying to achieve this on a rpi. But alright, thanks for the answer. Feb 22, 2020 at 20:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.