Ok, running a c++ program, and I want to run a shell command (system(cat /proc/cpuinfo | grep processor | wc -l))....
How would I read the result (it outputs a single number to stdout) into my program without using a filebuffer, and how would I need to change that command to make it work?
Thanks,
Lopoetve
How would I read the result (it outputs a single number to stdout) into my program without using a filebuffer, and how would I need to change that command to make it work?
Thanks,
Lopoetve