LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-23-2007, 08:00 PM   #1
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Etch/Lenny/Squeeze
Posts: 3,485

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Find X idle time


I am trying to find a command to get X idle time (user inactivity), preferably something I can call from a shell script.

I know the whole system is full of idle timers, but I just seem not being able to find one in user space.

I only found xprintidle, but this command only seems to run from a xwindow console which makes it pretty useless as you always just did something in X to issue the command.

jlinkels
 
Old 01-23-2007, 08:33 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 21,610
Blog Entries: 47

Rep: Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413Reputation: 1413
If prefab hints are all you need, I recently posted one idle tracker here: http://www.linuxquestions.org/questi...93#post2591493. With a bit of tweaking you should be able to confine 'ps' output to either a SID, PPID, UID or whatever you fancy.
 
Old 01-25-2007, 06:02 PM   #3
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Etch/Lenny/Squeeze
Posts: 3,485

Original Poster
Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Thanks... it is more ..uhm.. complicated than I expected, I would have expected something like echo /proc/sys/idletime or so. After all this is Linux....

But I'll give it a try and see how far I come.

jlinkels
 
  


Reply


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Idle Time in KDE elconde Linux - Software 2 05-19-2006 06:12 AM
How run script after certain idle time? nio Linux - Software 2 07-09-2005 02:05 PM
IDLE time for DSL metallica1973 Linux - Networking 0 02-22-2005 11:06 AM
How to find out idle time at console? redss Linux - General 1 04-26-2004 10:23 PM
Automatic logout because of Idle time palanisaravanan Linux - General 4 10-17-2003 10:51 AM


All times are GMT -5. The time now is 12:18 PM.

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