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 6985457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:40:57+00:00 2026-05-27T18:40:57+00:00

So I have a Python app that starts different xterm windows and in one

  • 0

So I have a Python app that starts different xterm windows and in one window after the operation is finished it asks the user “Do you want to use these settings? y/n”.
How can I send y to that xterm window, so that the user doesn’t needs to type anything.
Thanks

  • 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-27T18:40:58+00:00Added an answer on May 27, 2026 at 6:40 pm

    If you are on linux (kde) and you just want to control the xterms by sending commands between them, you could try using dcop:

    • http://www.linuxjournal.com/content/start-and-control-konsole-dcop
    • http://www.riverbankcomputing.co.uk/static/Docs/PyKDE3/dcopext.html

    Otherwise you would need to actually use an inter-process communication (IPC) method between the two scripts as opposed to controlling the terminals:

    • http://docs.python.org/library/xmlrpclib.html
    • http://docs.python.org/library/ipc.html
    • Some other IPC or RPC library
    • Simply listen on a basic socket and wait for ANYTHING. And then from the other app open a socket and write SOMETHING to signal.

    Or at a very very basic level, you could have one script wait on file output from the other. So once your first xterm finishes, it could write a file that the other script sees.

    These are all varying difficulties of solutions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Story: One of the app that i have works on python 2.4 and other
I have a Python-based app that can accept a few commands in a simple
I have an app that uses the python/c api and I was wondering what
I have a C++ app that uses Python to load some scripts. It calls
I have written a Django app that makes use of Python threading to create
In my Python app, I have an XML document that I'd like to transform
I'm a newbie to python and the app engine. I have this code that
Ubuntu 11.10, Python 2.6. Background: I have an existing Python app that is using
I have a command-line python app that is a service - i.e. it waits
I have a Django app running on Windows (via Apache + mod_wsgi) that's CPU-bound.

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.