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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:32:30+00:00 2026-06-06T03:32:30+00:00

I wrote a twitter like service, and I want to do some stress testing

  • 0

I wrote a twitter like service, and I want to do some stress testing on it with python.
I have a client program, called “client”.
I want to write a script that will start several processes of the the “client” program, send a few messages, wait a few seconds and will exit.

what I wrote is

p = subprocess.Popen(['client','c1','localhost','4981'],stdin=subprocess.PIPE)

now I can’t call the communicate method, because it waits for an EOF but the process isn’t over yet.
calling the stdin.flush doesn’t seems to work either.

Any tips on how do I do this?
(I don’t have to do this in python, if theres a way to do this with a bash script its also ok)

  • 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-06-06T03:32:32+00:00Added an answer on June 6, 2026 at 3:32 am

    You can use bash loop to run some clients and put them into the background. If you need to communicate with one, just put it to the foreground using fg and then put it to background again using bg

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

Sidebar

Related Questions

I am trying to write a twitter client application in python. I would like
I want to write a script that retrieve the tweets from a twitter account.
I want to do something like Twitter app: when someone write me I receive
I am new to the play framework and want to write my own twitter
I wrote some script in a site. The script makes a new spreadsheet and
i would like to implement some kind of service my customers can use to
I often have to code against Twitter, and now against other Web Service APIs
I wrote a tab system using some very basic Javascript and it runs like
I'm attempting to write a Twitter Powershell script that will use community created interfaces
I'm writing a test app using the twitter gem and I'd like to write

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.