LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   determining if system is active or inactive (http://www.linuxquestions.org/questions/linux-software-2/determining-if-system-is-active-or-inactive-787664/)

i.you 02-07-2010 08:01 PM

determining if system is active or inactive
 
Hi there,

For example, when a system transitions to sleep state, the system should determine if system is active or inactive.
I'm thinking of how to determine it as user activity, filesystem activity, and network activity.
I will exclude the keyboard activity.

So I'm wondering how to determine it generally in Linux (excluding keyboard activity).
Any idea or any related site?

Thanks in advance.

Elv13 02-07-2010 08:13 PM

top, iotop and ntop

or read the raw data from /proc and make a choice


All times are GMT -5. The time now is 08:41 AM.