I want to check, inside a bash script (*), how long the user of a X session has been idle.
The user himself does not have to be using bash, but just X. If the user just moved the mouse, for example, a good answer would be "idle for 0 seconds".
utility atop shows:
ATOP - MyServer 2013/01/07 00:03:57 10 seconds elapsed
PRC | sys 2.18s | user 8.33s | #proc 141 | #zombie 0 | #exit 0 |
CPU | sys 21% | user 139% | irq 0% | idle 228% | wait 11% |
cpu | sys 5% | user 40% | irq 0% | idle 51% | cpu002 w 3% |
cpu | sys 5% | user 35% | irq 0% | idle 56
I opened Terminal Services Manager today on my Win2k3 server and it shows something like this:
User State Idle Time Logon Time
Jake Active 1 9/20/2012
Silvia Disconnected 3+00:43
From the help docs, idle time:
Displays the number of minutes that have elapsed since the last keyboard or mouse input from a session.
OK, Jake has bee
Gentlemen,
A very basic question here. I am trying to set up a Python development environment to learn the language. I have Python 2.7.3 running on Linux mint14. I downloaded IDLE and installed it too, as I need a tabbing editor, and syntax highlighting won't hurt. Clean installs and Python runs just fine. I am past "Hello World!".
So how do I invoke IDLE?
I have problem with I/O Load of my Server here is statistics :
18:15:14 up 14 days, 9:38, 1 user, load average: 21.98, 23.25, 24.71
674 processes: 670 sleeping, 1 running, 1 zombie, 2 stopped
CPU0 states: 9.2% user 1.2% system 0.0% nice 22.3% iowait 66.0% idle
CPU1 states: 4.3% user 0.5% system 0.0% nice 38.1% iowait 55.4% idle
CPU2 states: 3.4% user 0.4% system 0.0%
i have Ubuntu 12.04 x64 installed on my computer and every so often like 30 minute periods it will log out by itself closing everything without me even getting the option to save my work. does anyone know how to fix this because im getting very frustrated. Im not idle when i get logged out ill be actively using the computer
I have Ubuntu 11.04 (natty).
I have read 'Screen goes blank when VLC is playing video'
My question is similar, but also I have this problem when viewing a video on youtube.
I am not quite clear about the meaning of 'computer idle'. Is it considered idle only when the keyboard or mouse is not being used?
I have an Asus Eee 1005-HA and I am using 9.10 NBR. I am having some problems with it not going idle when it should.
I tried to use awk command on centos 5.5 with cat test.txt|awk '{idle+=$idle;idle=-idle}END{print $idle}'; and in the test.txt file contain above number10 1001000 10000... [by migkie]