I am trying to run this bash command
$pactl list sinks short | grep 10_B7_F6_02_1B_4A
in my c++ project using QProcess and to get the output using readAllStandardOutput() as shown in this post. When I put echo at the beginning of the command and put 10_B7_F6_02_1B_4A before the pipe, I get the correct output into my QByteArray. However, the output format of pactl seems to be different than that of echo. In the terminal it looks like this:
$ pactl list sinks short | grep 10_B7_F6_02_1B_4A
2 bluez_sink.10_B7_F6_02_1B_4A module-bluez5-device.c s16le 2ch 44100Hz SUSPENDED
How can I read this output?