LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How can get values return from a system call (https://www.linuxquestions.org/questions/programming-9/how-can-get-values-return-from-a-system-call-93652/)

quenn 09-16-2003 10:41 PM

How can get values return from a system call
 
Hello!
I'm now programming on Kylix. But i don't know how to list all results (i want list to a text box) from a command:
system("ps -aux")
such as listing on shell.

Help me!

Thanks!






------0o0------
SOCIALIST REPUBLIC OF VIETNAM
Independence – Freedom – Happiness
------0o0------

crabboy 09-16-2003 11:05 PM

You can try using 'popen'. This will give you a file pointer to your resut set.


All times are GMT -5. The time now is 08:55 PM.