I need get information about operation system, how memory, cpu and disk.
But, I don't find any lib that to do it. So, I cretate a simple program to execute any commands to find any information, like: memoria total.
But, don't save the answer link variable.
Anybody, to know like get information of system and to save any variable?
system() doesn't allow that (best you can do is redirect to a temporary file and read that file later). However, popen() lets you run a command and examine its output.