<div dir="ltr"><div dir="ltr">Hi, I'm trying to make a C++ program (not a command line program like 
qmicli) which catches the result of commands like the qmicli command <br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt" id="gmail-m_-5005762171117446964gmail-docs-internal-guid-68c995dd-7fff-e53e-a017-077cd84d634c"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:rgb(255,255,0);font-weight:700;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><span style="background-color:rgb(255,255,255)">sudo qmicli -d /dev/cdc-wdm0 --wds-get-data-bearer-technology -p <span> </span></span></span><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:rgb(255,255,0);font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><span style="background-color:rgb(255,255,255)"><span>and is able to use it in a main (or another function), like as an if condition to make a decision, for example. <br></span></span></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:rgb(255,255,0);font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><span style="background-color:rgb(255,255,255)"><span><br></span></span></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:rgb(255,255,0);font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><span style="background-color:rgb(255,255,255)"><span>Do you know what I mean? Until now, I was looking to the qmicli code and I'm currently able to see the result (the current technology) in the console (thanks to a gprint) when executing my C++ code (I'm getting the same result as if I were typing <b>sudo qmicli -d /dev/cdc-wdm0 --wds-get-data-bearer-technology -p</b>  on the console) but I'm not being able to pass that result to my main in order to use it as an if condition, for example. <br></span></span></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:rgb(255,255,0);font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><span style="background-color:rgb(255,255,255)"><span><br></span></span></span></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:rgb(255,255,0);font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><span style="background-color:rgb(255,255,255)"><span>Thanks in advance.</span></span></span></p></div><span style="font-size:7pt;font-family:Arial;color:rgb(166,166,166);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br><span style="font-size:8pt;font-family:Arial;color:rgb(166,166,166);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></div></div></div></div></div></div></div></div>