I want to write a script that will show how many minutes the user is idle. Since the last touch of the keyboard and mouse. Example:
#!/bin/bash
while true
do
command_lines...
...
sleep 60
echo $var
done
Result:
The computer/user is idle for 1 minute.
The computer/user is idle for 2 minute.
...
The computer/user is idle for 5 minute.
...
Can we do that?
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
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 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]
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 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.
Hi there,
I am running Ubuntu 9.04 on a Toshiba laptop and having trouble getting it to suspend when idle.
In system -> preferences -> power management, under the 'battery power' tab I have set it to 'put computer to sleep when inactive for 11 minutes'.
Greetings Ubuntu-ers (?)
One of my clients (hostel) has a small network of Ubuntu desktops used by his guests. We recently upgraded all desktops to 12.04, and the new guest-session works great for what we do.
However, with this upgrade, we lost the ability to shutdown a machine when idle for more than 5 minutes.