Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- id=(your-id1 your-id2)
- pass=(your-pass1 your-pass2)
- tv=('Your PC1' 'Your PC2')
- ITEMS=""
- for item in {0..17}; do
- ITEMS=$ITEMS" $item ${tv[$item]}"
- echo $ITEMS
- done
- OPTION=$(dialog --title "List file of directory /home" --menu "Chose one" 24 80 17 $ITEMS 3>&2 2>&1 1>&3) # show dialog and store output
- clear
- if [ $? -eq 0 ]; then # Exit with OK
- echo ${id[$OPTION]}
- echo ${pass[$OPTION]}
- ./teamviewer -i ${id[$OPTION]} --Password ${pass[$OPTION]}
- fi
- OPTION=""
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement