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

  • Home
  • SEARCH
  • 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 8732951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:32:32+00:00 2026-06-13T09:32:32+00:00

The problem is that the process is not being started. The object is created,

  • 0

The problem is that the process is not being started. The object is created, but there is and was no process.

If I put a time.sleep() before the os.kill statement, I lose control. The process does start, but it isn’t killed. Additionally, my stdout is lost. Anything I type does not appear (I guess it’s also going to null). I have to close the terminal, open a new one, and manually kill the process (starting python and issuing that exact command does the job, which is good to know)

airodump = subprocess.Popen('airodump-ng -w outputfile mon0',shell=True,stdout=open('/dev/null', 'w'), stderr=open('/dev/null', 'w'))
#time.sleep(5)
os.kill(airodump.pid, signal.SIGTERM)   # airodump-ng
#airodump.wait()
print airodump

I’ve tried invoking the methods Popen.terminate(), Popen.kill(). I’m missing something with Popen….

Even when I put in a Popen.wait() before “print airodump” it just gets bypassed and the object address is printed. That little quirk is what has convinced me something is not right in my understanding of what’s going on.

  • 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-13T09:32:33+00:00Added an answer on June 13, 2026 at 9:32 am

    You should try:

    airodump = subprocess.Popen(['airodump-ng', '-w', 'outputfilename', 'mon0'],
                                stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    time.sleep(secs)
    airodump.terminate()
    return_code = airodump.wait()
    

    Notice I’ve replaced your string command with a list, dropped the shell=True and the stdout stuff. First shell=True makes everything harder to debug so you should try running this without it, but in order to do that you’ll need to use a list for your command not a string.

    The more standard way to capture stdout/stderr and prevent them from going to screen is to use stdout=subprocess.PIPE. If you still can’t get this to work the way you expect try checking airodump.stdout and airodump.sterr to see what’s going on with your process. Hope that’s enough to get you started.

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

Sidebar

Related Questions

I am using TIdHttpServer to process some commands the problem is that some commands
The problem is, that my XSLT-Transformation process ( called by .NET ), doesn't leave
I have a problem that I'm working on for quite some time now. I
Seems to be a problem that many people have, but all the answers I
the problem in a nutshell: running plink(with specific arguments) works from cmd, but not
Well, they're not supposed to crash, but they do anyway. Is there a way
Simple problem that I can't figure out... How can I print a '%' character
The problem that I have is somehow very specific. I have to implement a
Here is a problem that has been bothering me a lot about Python, I
Im currently facing the problem that when i try to set focus on some

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.