simple script two commands to connect bluetooth keyboard
by Johng from LinuxQuestions.org on (#5NTW2)
How would I issue two commands to connect a bluetooth keyboard.
When I issue the first command in a terminal: bluetoothctl
I get: [Bluetooth Keyboard]#
waiting for the next command.
Using the terminal I can enter the second command: connect xx:xx:xx:xx:xx:xx
where xx:xx:xx:xx:xx:xx is a valid mac address
My problem is I have not found a way to "script" the two commands.
When I issue the first command in a terminal: bluetoothctl
I get: [Bluetooth Keyboard]#
waiting for the next command.
Using the terminal I can enter the second command: connect xx:xx:xx:xx:xx:xx
where xx:xx:xx:xx:xx:xx is a valid mac address
My problem is I have not found a way to "script" the two commands.