Python Forum
datasharing between two separated running scripts
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
datasharing between two separated running scripts
#1
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.
Reply


Messages In This Thread
datasharing between two separated running scripts - by Ispanicuz - Dec-20-2018, 10:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can histogram bins be separated and reduce number of labels printed on x-axis? cadena 1 2,089 Sep-07-2022, 09:47 AM
Last Post: Larz60+
  [SOLVED] [BeautifulSoup] Turn select() into comma-separated string? Winfried 0 2,005 Aug-19-2022, 08:07 PM
Last Post: Winfried
  Running python scripts from github etc pacmyc 7 5,333 Mar-03-2021, 10:26 PM
Last Post: pacmyc
  Running scripts and location of saved interpreted user-defined classes and functions leodavinci1990 3 3,522 Aug-25-2020, 03:43 AM
Last Post: micseydel
  How to print string multiple times separated by delimiter Mekala 1 2,660 May-23-2020, 09:21 AM
Last Post: Yoriz
  Running two scripts and more.... Brian_c 0 2,177 Mar-25-2020, 10:31 PM
Last Post: Brian_c
  Phyton code to load a comma separated csv file in to a dict and then in to a dB mrsenorchuck 2 3,581 Nov-29-2019, 10:59 AM
Last Post: mrsenorchuck
  can concatenated pickles be separated? Skaperen 0 1,837 Jul-29-2019, 06:35 PM
Last Post: Skaperen
  string agg separated by comma shyamal_kesh 1 2,755 Nov-23-2018, 12:57 PM
Last Post: Larz60+
  running two python scripts pythonper 1 3,253 Mar-14-2018, 06:57 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020