Hi. There is a common Unix program called "top" that outputs useful system information like "load average", "memory usage", "cpu usage", etc.
I know I can do the following and parse the data within a python script...
Code: Alles auswählen
topData = os.system("top")
# the 'free' command lists free memory
# freeData = os.system("free")
But, I'd rather not rely on the "top" command. Is there a way to view the amount of free memory in a system using pure python?