Skip to content
Advertisement

Bash inline version of piping file to bluetoothctl

bt.sh

JavaScript

If I pipe the above file to bluetoothctl, it works as expected.

JavaScript

But how can I do that as an inline script, I have tried the following but it does not work and bluetoothctl does not appear to register the commands:

JavaScript

Advertisement

Answer

Use a command list:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement