Click here to Skip to main content
15,946,342 members
Home / Discussions / Linux Programming
   

Linux Programming

 
QuestionDAOS Command Fails with "Transport layer mercury error" on CentOS 7.9 Pin
northernlights from Bombay10-Jun-24 11:06
northernlights from Bombay10-Jun-24 11:06 
GeneralRe: DAOS Command Fails with "Transport layer mercury error" on CentOS 7.9 Pin
k505426-Jun-24 5:30
mvek505426-Jun-24 5:30 
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 
GeneralRe: rfcomm ? Pin
Salvatore Terress23-May-24 7:05
Salvatore Terress23-May-24 7:05 
GeneralRe: rfcomm ? Pin
trønderen23-May-24 8:33
trønderen23-May-24 8:33 
AnswerRe: rfcomm ? Pin
Richard MacCutchan21-May-24 22:42
mveRichard MacCutchan21-May-24 22:42 
GeneralRe: rfcomm ? Pin
Peter_in_278023-May-24 12:21
professionalPeter_in_278023-May-24 12:21 
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 

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.