Article 5NTW2 simple script two commands to connect bluetooth keyboard

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.latest?d=yIl2AUoC8zA latest?i=vYthgthbavE:4Vs_9zyrVto:F7zBnMy latest?i=vYthgthbavE:4Vs_9zyrVto:V_sGLiP latest?d=qj6IDK7rITs latest?i=vYthgthbavE:4Vs_9zyrVto:gIN9vFwvYthgthbavE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments