hello everybody,
i need some help understanding what's best solution to share data between two running script.
this is my scenario:
i've a program named sensor.py that when started it creates three separated thread doing somestuff in background and saving result in a string variable json formatted.
this programs start automatically once OS starts.
everything working until here, now it gets worst......
on demand, i'd like to run a simple command line program (std input/output) able to read other program variables running in BG.
i know i can use socket but i dont want to use network, i read about Queue but i don't understand how to let it work with two separates scripts, i also read about named pipe (FIFO) but i understood it works with FileSystem (why i should i/o hdd when i have it in memory?).
thanks for any advice.
i need some help understanding what's best solution to share data between two running script.
this is my scenario:
i've a program named sensor.py that when started it creates three separated thread doing somestuff in background and saving result in a string variable json formatted.
this programs start automatically once OS starts.
everything working until here, now it gets worst......
on demand, i'd like to run a simple command line program (std input/output) able to read other program variables running in BG.
i know i can use socket but i dont want to use network, i read about Queue but i don't understand how to let it work with two separates scripts, i also read about named pipe (FIFO) but i understood it works with FileSystem (why i should i/o hdd when i have it in memory?).
thanks for any advice.