Reputation: 11
Is there any famous python plugin/library to monitor linux system , such as :
is there any?
thank you very much :D
Upvotes: 0
Views: 2220
Reputation: 21
I made this simple application in Python, all you need to install for this to run is a package named "acpi". Change the refresh rate to your preferences.
import os
import time
refreshrate = 10
while(1):
os.system("clear")
print(os.system("acpi -V"))
time.sleep(refreshrate)
Upvotes: 2
Reputation: 2629
You should have a look to this project that looks closely to what you want to do.
Alternatively you can use system programs through a an exec or a pipe (popen). More generally have a look to this package
For instance, to get temperature, you can simply use os.system()
:
import os
print os.system('acpi -t')
Depending on the program you want to execute you may need threading and pipes or not.
Upvotes: 0