-2
Good afternoon, everyone,
I want to write a script with a command that captures all wireless network flow around my company and store it in a text file. Currently I do so:
airmon-ng start 'nome da placa de rede wifi'
airodump-ng -a wlan0mon 2>&1 | tee captura.txt
It happens that to interrupt the capture it is necessary to press CTRL+C and I have to capture for 10, 15 or 20 minutes, so that the file does not get gigantic!
Does anyone have any suggestions for this process to stop without pressing CTRL+C?
Automation and infrastructure questions should be asked in English at [su], [sf] or https://unix.stackexchange.com/ depending on the subject. Remember to read the specific rules of each community before posting there. For future issues that are on site scope worth understanding What is the Stack Overflow and read the Stack Overflow Survival Guide (summarized) in Portuguese.
– Bacco
I thought his question was valid, since it’s about programming in bash and shell script.
– gorn