| | |
Accessing system resources
![]() |
•
•
Join Date: Jul 2009
Posts: 2
Reputation:
Solved Threads: 0
Hey
I use both windows vista and Ubuntu (mostly) for developing small py scripts. I wanted to know if there were any libraries or modules available to get information about system resources like :
- Source of power (ac or battery)
- how much battery time is left
- Is there any network activity
- how much CPU / Memory is being used
Basically all the things that Task Manager(windows) or System Monitor(linux) would do for you. I wanna do this using a PY script. (or if there is a way to do it at the linux shell)
Any info would be greatly appreciated.
Thanks,
Asim
I use both windows vista and Ubuntu (mostly) for developing small py scripts. I wanted to know if there were any libraries or modules available to get information about system resources like :
- Source of power (ac or battery)
- how much battery time is left
- Is there any network activity
- how much CPU / Memory is being used
Basically all the things that Task Manager(windows) or System Monitor(linux) would do for you. I wanna do this using a PY script. (or if there is a way to do it at the linux shell)
Any info would be greatly appreciated.
Thanks,
Asim
For windows look for WMI scripting queries that would fetch you the required info. You can use the same in the python. The Microsoft site has plenty of details on that.
For Ubuntu, you will have to look for the file which stores that info. It could be in /proc.
A google search for "Ubuntu + battery" gave me something called
Hope this helps...
For Ubuntu, you will have to look for the file which stores that info. It could be in /proc.
A google search for "Ubuntu + battery" gave me something called
•
•
•
•
acpi -V
![]() |
Similar Threads
- Office 2007 Excel taking 1 GB of RAM from system resources (Windows Software)
- svchost using all system resources all the time (Windows NT / 2000 / XP)
- Accessing System resources (ASP.NET)
- not enough system resources to display completely (Windows Software)
- System Resources drainage with Win 98SE (Windows 95 / 98 / Me)
- LOW RESOURCES problem (Windows 95 / 98 / Me)
- System Resources Extremely Low (Windows 95 / 98 / Me)
Other Threads in the Python Forum
- Previous Thread: sudoku solver problem
- Next Thread: Moola Gold Rush Solver
| Thread Tools | Search this Thread |
abrupt accessdenied anti apache application approximation argv array beginner book builtin calculator change converter countpasswordentry curved dan08 dictionaries dictionary dynamic edit enter examples file float format function gui heads homework import inches input java keyboard lapse launcher library line lines linux list lists loop microphone mouse movingimageswithpygame mysqlquery newb number numbers numeric output parameters parsing path phonebook plugin port prime programming projects py2exe pygame pyopengl python random recursion redirect remote reverse scrolledtext session simple software sprite statictext statistics string strings syntax table terminal text textarea threading time tlapse trick tuple tutorial twoup ubuntu unicode unit urllib urllib2 variable wordgame wxpython





