Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-26-2004, 01:09 PM   #1
LQ Newbie
Registered: Dec 2004
Distribution: Libranet
Posts: 11

Rep: Reputation: 0
reading idle time with perl/shell script

i'm looking to find a way to detect whether or not the user is idle (in terms of mouse and keyboard activity) from either a shell script or a perl script. i am running libranet with kde. a solution that applies to linux in general would be somewhat preferable so i could apply it to desktop environments other than kde in the future, but i would also be happy with a kde specific solution. if possible, it would also be nice to know how long the user has been idle, but it would be okay if it was a true/false response.

any suggestions?
Old 12-27-2004, 01:11 PM   #2
LQ Newbie
Registered: Dec 2004
Distribution: Libranet
Posts: 11

Original Poster
Rep: Reputation: 0
in case anyone is interested, i found the answer to my question. the X11::IdleTime module in CPAN does the trick.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How run script after certain idle time? nio Linux - Software 2 07-09-2005 02:05 PM
Perl - Reading Real Time streams vitoal18t Programming 10 05-18-2005 06:59 AM
Shell Script: Reading Pdf files funkymunky Programming 8 06-18-2004 03:34 PM
how to find the pid of a perl script from shell script toovato Linux - General 1 12-19-2003 06:25 PM
Perl Script Reading a txt file and generate html to be published! kofi Linux - Software 1 09-22-2003 05:12 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration