Click here to Skip to main content
15,903,388 members
Home / Discussions / Linux Programming
   

Linux Programming

 
AnswerRe: How to verify Bluetooth? Pin
jschell3-Nov-23 4:44
jschell3-Nov-23 4:44 
AnswerRe: How to verify Bluetooth? Pin
Salvatore Terress7-Nov-23 3:31
Salvatore Terress7-Nov-23 3:31 
GeneralRe: How to verify Bluetooth? Pin
Salvatore Terress7-Nov-23 9:13
Salvatore Terress7-Nov-23 9:13 
AnswerRe: How to verify Bluetooth? Pin
k50547-Nov-23 10:00
mvek50547-Nov-23 10:00 
QuestionMessage Closed Pin
Jeremy Falcon13-Oct-23 7:59
professionalJeremy Falcon13-Oct-23 7:59 
AnswerRe: Message Closed Pin
RedDk14-Nov-23 7:39
RedDk14-Nov-23 7:39 
GeneralRe: Message Closed Pin
Jeremy Falcon15-Nov-23 3:42
professionalJeremy Falcon15-Nov-23 3:42 
QuestionMessage Closed Pin
4-May-23 2:56
Member 149687714-May-23 2:56 
AnswerRe: How to "provide password " ? Pin
jschell2-May-23 11:04
jschell2-May-23 11:04 
GeneralMessage Closed Pin
2-May-23 12:47
Member 149687712-May-23 12:47 
GeneralRe: How to "provide password " ? Pin
jschell3-May-23 9:46
jschell3-May-23 9:46 
AnswerRe: How to "provide password " ? Pin
Richard MacCutchan2-May-23 22:14
mveRichard MacCutchan2-May-23 22:14 
AnswerRe: How to "provide password " ? Pin
Graham Breach2-May-23 23:38
Graham Breach2-May-23 23:38 
AnswerRe: How to "provide password " ? Pin
k50543-May-23 6:33
mvek50543-May-23 6:33 
GeneralMessage Closed Pin
3-May-23 7:22
Member 149687713-May-23 7:22 
GeneralRe: How to "provide password " ? Pin
k50543-May-23 8:06
mvek50543-May-23 8:06 
GeneralRe: How to "provide password " ? Pin
jschell3-May-23 9:44
jschell3-May-23 9:44 
GeneralRe: How to "provide password " ? Pin
Richard MacCutchan3-May-23 21:16
mveRichard MacCutchan3-May-23 21:16 
AnswerRe: How to "provide password " REMOVED Pin
Dave Kreskowiak4-May-23 3:05
mveDave Kreskowiak4-May-23 3:05 
AnswerRe: How to "provide password " REMOVED Pin
Victor Nijegorodov4-May-23 6:18
Victor Nijegorodov4-May-23 6:18 
GeneralRe: How to "provide password " REMOVED Pin
Richard MacCutchan5-May-23 3:51
mveRichard MacCutchan5-May-23 3:51 
QuestionMessage Closed Pin
2-May-23 4:58
Member 149687712-May-23 4:58 
AnswerRe: Why is "su" failing and "sudo su " works ? Pin
k50542-May-23 5:29
mvek50542-May-23 5:29 
GeneralMessage Closed Pin
2-May-23 6:33
Member 149687712-May-23 6:33 
AnswerRe: Why is "su" failing and "sudo su " works - revised ? Pin
k50542-May-23 7:08
mvek50542-May-23 7:08 
Member 14968771 wrote:
Can I ask you to "translate" this to English for me ?
QP->start("/bin/sh", QStringList() << "-c" << command);


Sure: call operator<< on the results of calling some unknown function QStringList() and (char *)"-c" and then call operator<< on the results of that with some unknown object command. Then pass that ojbect and (char *)"/bin/bash" to method start on some unknown object QP. What any of this actually does in not known in the context of what you've presented here. I'm guessing it pulls the tail on a elephant at the Bronx Zoo. Its as valid a guess as anything else.

Assuming this goes back to your question about creating a link between /dev/ttyUSB0 and something that looks might be a bluetooth device file (which you've now helpfully removed, so I can't refer to it .. nice), Are you sure that's what you want to do? This would suggest that you have a serial USB dongle (i.e. an RS232 to USB converter) to which you've attached a serial BlueTooth receiver. I don't know if any such beast actually exists. I suspect not, so you're probably going in the wrong direction here.

But a quick perusal of the docs for QProcess, which is what I assume that QP is, doesn't suggest that QP launches a terminal, so is that part of what command does? Perhaps you'd be better off looking into how to use sudo to let a user launch a given command without having to enter a password? https://askubuntu.com/a/159009 Alternatively, you could change the ownership of the executable to a user with sufficient access to perform whatever task it is you're trying to do, and then set the suid bits on the executable so the executable runs as that user. You man need to call seteuid() and setegid() as well.
Keep Calm and Carry On

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.