I want to write a bash shell script to execute a command for one minute then stop that command (ctrl c) pause for 10 seconds then run another command for one minute then stop that command pause for 10 seconds then go back to the begining of the script and loop indefinetly.
First I want to run this command for one minute;
reaver -i mon0 -c 6 -b "mac address" -a -vv
stop previous command and pause for 10 seconds
Then run this command for one minute;
airodump-ng -i mon0
stop previous command and pause for 10 seconds
Then recall reaver command and continue to loop through until reaver spits out result.
I imagine I will need to create a function for each command, an if statement and an ifelse statement and I will need the break and sleep commands. but I am not sure about the syntax, PLEASE HELP THIS NOOB!