DustyMP
July 5th, 2009, 03:29 AM
I'm trying to write a script for some programs I run routinely. The problem is that one is run in the terminal and only exits with a ctrl+c. I just can't manage to figure out how to pass it along. Everything I've tried so far interrupts it for half a second or so and it just keeps trucking along. The latest evolution looking something like:
import subprocess as sub, time
test = sub.Popen(['sudo airodump-ng mon0'], shell=True)
time.sleep(120)
test.terminate()
I'm trying to learn this language so I can move away from VBScript so any nudges in the right direction would be greatly appreciated =)
import subprocess as sub, time
test = sub.Popen(['sudo airodump-ng mon0'], shell=True)
time.sleep(120)
test.terminate()
I'm trying to learn this language so I can move away from VBScript so any nudges in the right direction would be greatly appreciated =)