I am writing a shell script and I have a command "airodump-ng" and this program runs forever capturing the information about the access points. What I want to do in my script is to run the program and capture some information after exactly 10 seconds. So to put it in general terms, how can I capture some information from a live running program in my script. The format of "airodump-ng" is given below.
Asked
Active
Viewed 401 times
1
-
1Have your daemon append its updates to a log file that your script reads. – Davislor Nov 17 '15 at 02:44
-
@Lorehead How do I do that? I am using >> operator but when I go to the file it is empty – fur866 Nov 17 '15 at 03:04
1 Answers
1
aircrack-ng has its own command to store stream data into a file like csv and other formats
airodump-ng --write /sd/airodump.pcap --output-format pcap mon0

Munam Tariq
- 160
- 1
- 3
- 13