Score:0

Get open terminal output from the script in bash

gb flag

I wrote a little script in bash that just puts the network card in monitor mode and then launches airodump-ng in a separate terminal to scan. Here the problem arises, I start airodump in a new terminal like this: konsole -e "airodump-ng $ interface" only that I would like to close the terminal where airodump works I get the output in the script so that I can continue the execution but at CTRL + C also closes the first terminal that runs the script. How can I solve?

Nmath avatar
ng flag
If you want us to audit or help improve a script, you should provide the script. Use edit to add details.
Score:0
cn flag

I think that because the monitoring utility can write its output to a file such as

airodump-ng -c 6 -w /root/chan6 wlan0mon

You could press Ctrl-C at anytime and be able to continue your analysis based on the data captured in the /root/chan6 output file.

gb flag
When i close airodump-ng my script in the main terminal is closed, why?
mondotofu avatar
cn flag
After looking at some tutorials such as https://singhgurjot.wordpress.com/2012/02/24/how-to-install-airodump-ng-and-aireplay-ng-in-ubuntu/ It seems that opening a terminal manually would make sense. Alternatively, you could share something of the script for the AskUbuntu community to analyze.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.