On 26 Jan, 15:58, Clement <[EMAIL PROTECTED]> wrote:
> Hi friends,
> How can i get system information like CPU load and RAM usage in linux.
> Is there any packages for python
One result lower than this thread in the Google search results for the
query "Python System Informatio
On Jan 27, 2:23 pm, Martin Saturka <[EMAIL PROTECTED]> wrote:
> > How can i get system information like CPU load and RAM usage in linux.
>
> What about 'pystatgrab'?
> It provides good info, with a limitation - it does not have CPU info
> for particular CPUs
> How can i get system information like CPU load and RAM usage in linux.
What about 'pystatgrab'?
It provides good info, with a limitation - it does not have CPU info
for particular CPUs, it takes just the cumulative CPU info.
http://www.i-scream.org/pystatgrab/
http://packag
On Jan 26, 2:58 pm, Clement <[EMAIL PROTECTED]> wrote:
> Hi friends,
> How can i get system information like CPU load and RAM usage in linux.
> Is there any packages for python
Good question.
I've just had a scout around on Google and found no "ready-made"
libraries
Hi friends,
How can i get system information like CPU load and RAM usage in linux.
Is there any packages for python
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 16, 2:27 pm, Astan Chee <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a python script and I want to check what operating system it is
> on and what the current local machine name is.
> How do I do it with python?
> Thanks!
> Astan
import platform
platform.uname()
--
http://mail.python.org/mai
Hi,
I have a python script and I want to check what operating system it is
on and what the current local machine name is.
How do I do it with python?
Thanks!
Astan
--
http://mail.python.org/mailman/listinfo/python-list
Good news!
I asked a buddy that runs osx, and he whipped up a script for you :)
I understand it's not python, but it gets you close, you should be able
to use popen or subprocess.call to complete this.
function is_charger_plugged_in()
{
sleep 3;
BATTINFO=`ioreg -l -w 0 | grep IO
[EMAIL PROTECTED] wrote:
> in the online-documentation for this and had no luck. I imagine it is
> quite easy and may even be as simple as a boolean variable...?
In general it's not so simple, since a computer can have many power
sources.
> All I want to be able to tell is whether or not my compu
Oops -- just asked a buddy, osx doesn't have /proc
But you could look into sysctl
I'll boot up my laptop and check out if there is anything regarding the
battery, but I suspect you should investigate
sysctl -a | grep acpi
--
http://mail.python.org/mailman/listinfo/python-list
I'm not sure about osx, but I know linux uses a proc virtual
filesystem. ( freebsd is probably closer, and it doesn't either but you
can mount it via mount_linprocfs none /proc)
But if you know if you have a proc file system, you can check it to see
if you are under power...
IE if I remember righ
Hello. I want to write a program in which the main functionality will
depend on whether or not my
computer is connected to a power adapter(this is for laptops). I looked
in the online-documentation for this and had no luck. I imagine it is
quite easy and may even be as simple as a boolean variabl
nevermind, found it
thanks all!
--
http://mail.python.org/mailman/listinfo/python-list
For the memory, which of these fields tells you the total amount of
RAM? Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
Thank you all! These tips answer my question. I am glad I discovered
this group.
--
http://mail.python.org/mailman/listinfo/python-list
[posting through Google; not sure how it will format]
re info on WMI website: please note that the examples I
give no the WMI pages are *nowhere near* exhausting
what WMI can do. They don't even scratch the surface.
And I all too rarely add to them.
If you look around the net, you'll find absolut
[EMAIL PROTECTED] wrote:
> thank you!
>
> from what I can see from the second website you listed, there is a way
> to get harddisk space information, but is there any way to get CPU load
> and RAM usage?
>
Have a look at the snippet:
#>>> import wmi
#>>> t = wmi.WMI()
#>>> for i in t.Win32_Perf
thank you!
from what I can see from the second website you listed, there is a way
to get harddisk space information, but is there any way to get CPU load
and RAM usage?
--
http://mail.python.org/mailman/listinfo/python-list
Martin P. Hellwig wrote:
> [EMAIL PROTECTED] wrote:
>
>> Does anybody know how to get the:
>>
>> Free hard disk space
>> Amount of CPU load
>> and Amount of RAM used
>>
>> on windows? I am making an artificial intelligence program that has
>> "moods" based on how much stress the sys
Does anybody know how to get the:
Free hard disk space
Amount of CPU load
and Amount of RAM used
on windows? I am making an artificial intelligence program that has
"moods" based on how much stress the system is under, based on these
parameters. I think it could possibly be done vi
[EMAIL PROTECTED] wrote:
> Does anybody know how to get the:
>
> Free hard disk space
> Amount of CPU load
> and Amount of RAM used
>
> on windows? I am making an artificial intelligence program that has
> "moods" based on how much stress the system is under, based on these
> param
21 matches
Mail list logo