in reply to Detecting idle time on Mac
ioreg -c IOHIDSystem | perl -lane 'if(/Idle/) {print $F[-1]/1000000000 +; last;}'
Update: cleaned up that link's Perl version a bit.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Detecting idle time on Mac
by sgifford (Prior) on Sep 14, 2006 at 13:12 UTC | |
by Fletch (Bishop) on Sep 14, 2006 at 14:36 UTC |