Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1808568
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:16:38+00:00 2026-05-17T06:16:38+00:00

I have this Python based service daemon which is doing a lot of multiplexed

  • 0

I have this Python based service daemon which is doing a lot of multiplexed IO (select).

From another script (also Python) I want to query this service daemon about status/information and/or control the processing (e.g. pause it, shut it down, change some parameters, etc).

What is the best way to send control messages (“from now on you process like this!”) and query processed data (“what was the result of that?”) using python?

I read somewhere that named pipes might work, but don’t know that much about named pipes, especially in python – and whether there are any better alternatives.

Both the background service daemon AND the frontend will be programmed by me, so all options are open 🙂

I am using Linux.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:16:39+00:00Added an answer on May 17, 2026 at 6:16 am

    Pipes and Named pipes are good solution to communicate between different processes.
    Pipes work like shared memory buffer but has an interface that mimics a simple file on each of two ends. One process writes data on one end of the pipe, and another reads that data on the other end.

    Named pipes are similar to above , except that this pipe is actually associated with a real file in your computer.

    More details at

    • http://www.softpanorama.org/Scripting/pipes.shtml

    In Python, named pipe files are created with the os.mkfifo call

    x = os.mkfifo(filename)
    

    In child and parent open this pipe as file

    out = os.open(filename, os.O_WRONLY)
    in = open(filename, 'r')
    

    To write

    os.write(out, 'xxxx')
    

    To read

    lines = in.readline( )
    

    Edit: Adding links from SO

    • Create a temporary FIFO (named pipe) in Python?
    • https://stackoverflow.com/search?q=python+named+pipes

    You may want to read more on “IPC and Python”

    • http://www.freenetpages.co.uk/hp/alan.gauld/tutipc.htm
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this program in Python which should save text files to a folder
I have problem with python multithreaded Queues. I have this script, where producer take
In a Python system for which I develop, we usually have this module structure.
I have my service (RPC based on JSON) that I want to protect from
I have a python-based daemon that provides a REST-like interface over HTTP to some
I have this code in Python inputted = input(Enter in something: ) print(Input is
I have this function in Python: def Rotate_Vector(vector, axis, direction): where vector is a
In Python I have this code: now = datetime.now().isoformat() if . not in now:
I am learning python and have this error . I can figure out where\what
I have this code: def display(self): print self.doc.toprettyxml(indent= ) strigName ='/Users/my_user/Desktop/python/' + str(datetime.datetime.now()) +

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.