Click here to Skip to main content
15,904,024 members
Home / Discussions / Linux Programming
   

Linux Programming

 
Questionrfcomm ? Pin
Salvatore Terress21-May-24 9:37
Salvatore Terress21-May-24 9:37 
AnswerRe: rfcomm ? Pin
jschell21-May-24 12:29
jschell21-May-24 12:29 
GeneralRe: rfcomm ? Pin
Salvatore Terress21-May-24 18:04
Salvatore Terress21-May-24 18:04 
AnswerRe: rfcomm ? Pin
trønderen21-May-24 21:17
trønderen21-May-24 21:17 
AnswerRe: rfcomm ? Pin
Richard MacCutchan21-May-24 22:42
mveRichard MacCutchan21-May-24 22:42 
QuestionHow to redirect command output - general reference wanted... Pin
Salvatore Terress4-Mar-24 9:15
Salvatore Terress4-Mar-24 9:15 
<a href="https://man7.org/linux/man-pages/man3/system.3.html">system(3) - Linux manual page</a>[<a href="https://man7.org/linux/man-pages/man3/system.3.html" target="_blank" title="New Window">^</a>]


This is somewhat a dupe, so if it bothers you...( I am not allowed to give instructions ...)

I am asking for generic / general help in capturing Linux command output.

I am going to use this as an example:

system("hcitool dev | cut -sf3 ");


I know what is does - that is NOT of my concern..

I can see the result in (Qt) console...

I do not know HOW - what "hidden" code (std??) put
the actual result of the call onto console

and

how can I redirect such call for my purpose ?

I did RTFM for "system" and found NO references , or missed them,
on how to capture THE actual output of the command.

that said - what would be SUCCESSFUL phrase to ask Mrs Google to
give me a general Linux resource ( text book ?) to cover

"standard output / input / error "
and

how to figure out if the command uses

"standard output / input / error "

and how to access it in C/C++

..all this just for learning purpose

CHEERS
THANks
AnswerRe: How to redirect command output - general reference wanted... Pin
Richard MacCutchan4-Mar-24 9:17
mveRichard MacCutchan4-Mar-24 9:17 
QuestionBluetooth - dead end again... Pin
Salvatore Terress22-Feb-24 14:26
Salvatore Terress22-Feb-24 14:26 
AnswerRe: Bluetooth - dead end again... Pin
RedDk22-Feb-24 18:45
RedDk22-Feb-24 18:45 
GeneralRe: Bluetooth - dead end again... Pin
Salvatore Terress23-Feb-24 2:07
Salvatore Terress23-Feb-24 2:07 
Question3dDeconvolve coding Pin
Sevinc Bayar18-Jan-24 7:31
Sevinc Bayar18-Jan-24 7:31 
AnswerRe: 3dDeconvolve coding Pin
Richard MacCutchan18-Jan-24 22:04
mveRichard MacCutchan18-Jan-24 22:04 
AnswerRe: 3dDeconvolve coding Pin
Dave Kreskowiak19-Jan-24 4:05
mveDave Kreskowiak19-Jan-24 4:05 
AnswerRe: 3dDeconvolve coding Pin
jschell19-Jan-24 5:06
jschell19-Jan-24 5:06 
AnswerRe: 3dDeconvolve coding Pin
Dr.Walt Fair, PE20-Feb-24 10:50
professionalDr.Walt Fair, PE20-Feb-24 10:50 
Questionhcitool numbering hcix Pin
Salvatore Terress18-Dec-23 13:15
Salvatore Terress18-Dec-23 13:15 
AnswerRe: hcitool numbering hcix Pin
jschell1-Jan-24 2:12
jschell1-Jan-24 2:12 
Questionhow to use "whereis" recursively ? Pin
Salvatore Terress28-Nov-23 9:17
Salvatore Terress28-Nov-23 9:17 
AnswerRe: how to use "whereis" recursively ? Pin
Richard MacCutchan28-Nov-23 21:59
mveRichard MacCutchan28-Nov-23 21:59 
AnswerRe: how to use "whereis" recursively ? Pin
jschell29-Nov-23 5:01
jschell29-Nov-23 5:01 
AnswerRe: how to use "whereis" recursively ? Pin
k505429-Nov-23 6:36
mvek505429-Nov-23 6:36 
QuestionAcademic question - what is basic Bluetooth Linux access ? Pin
Salvatore Terress7-Nov-23 3:48
Salvatore Terress7-Nov-23 3:48 
AnswerRe: Academic question - what is basic Bluetooth Linux access ? Pin
Richard MacCutchan7-Nov-23 4:03
mveRichard MacCutchan7-Nov-23 4:03 
QuestionHow to verify Bluetooth? Pin
Salvatore Terress2-Nov-23 15:15
Salvatore Terress2-Nov-23 15:15 
AnswerRe: How to verify Bluetooth? Pin
Richard MacCutchan3-Nov-23 1:52
mveRichard MacCutchan3-Nov-23 1:52 

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.