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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:26:32+00:00 2026-05-15T22:26:32+00:00

I worked on a Unix app where two applicants ran and talked to each

  • 0

I worked on a Unix app where two applicants ran and talked to each other using the command-line, i.e each had a loop something like (treat this as pseudo code):

bool stop=false;
do
{
  stringstring cmdBuffer;
  cin >> cmdBuffer
  string ret = processCommand(cmdBuffer);
  if(ret.length()==0)
    stop=true;
  else
    cout << ret;
}
while(!stop);

Is there any reason two Windows apps can’t do the same? Would they have to be running on the same ‘command prompt’ or be console apps, or does the notion of command-lines go beyond being able to see a command prompt in front of me?

For reference, in my case one app would be running the other, they’re not two separate apps run up independently.

  • 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-15T22:26:32+00:00Added an answer on May 15, 2026 at 10:26 pm

    I’d say redirect the input and output handles(SetStdHandle), but using a named pipe is safer and more secure, plus you can use sync functions on it.

    you can also use a global mutex/event or Mapped memory instead, as both are globally named and easy to get/set and read/write to.

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

Sidebar

Related Questions

I am using a unix time stamp as the base of my starting date
I am using Network Solutions as a hosting provider with a UNIX hosting package.
The unix tee command splits the standard input to stdout AND a file. What
I have worked extensively in the area of accessible applications using TTS (Text to
I have worked on Java and Java EE stuff along with Unix scripting etc.
I have never worked on programming languages before. I am learning C and unix
On my Unix web server, I have two MySQL database servers running. One on
I'm trying to create a node.js command line utility and having an issue with
I worked with: ASP.Net: Ajax check for registration as a user? It has a
I worked with a graphic designer that did not clone from my github account.

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.