Forum Thread: Kill Current Process (Python)

So in python I have this one line

self.setup.oslinuxcall("airodump-ng {}".format(adapter))

This runs airodump on said adapter. My question is how do I make it so I could just exit airodump instead of the whole script like ctrl+c would do.

Thank you in advance.

2 Responses

Use this:
try:
(Run airodump)
except KeyboardInterrupt:
pass

Ah yes this worked. Thank you for the help!

Share Your Thoughts

  • Hot
  • Active