[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: killing process after idle time



"Daniel Gall" <gall@epost.de> writes:

> i´m not (yet) too familiar with linux but would like to exchange the
> os of several computers in our school from windows xp to linux
> (knoppix hd-install).
>
> Beforehand i want to make sure if (and how) i can accomplish that a
> program (i.e. Mozilla) will be killed after a certain idle time (no
> user activity) and will restart right after.
>
> Background: A pre-defined e-learning info-website should be seen by
> default when students start using the computer. Since i am aware
> that not all students will remain on that site i want to make sure
> that this page is reloaded automatically after, say , 5 minutes of
> no user activity.

You'd have to hook into a program that monitors keyboard and mouse
activity, like a screensaver.  I know that, for one, XScreenSaver has
a mode where you can have it tell you when a certain time of idleness
has passed.  See the '-watch' option:

  http://www.jwz.org/xscreensaver/man3.html

Lucas
-- 
Lucas Bergman <lucas@fivesight.com>
Tired of getting duplicate copies of mailing list messages?  I respect
the 'mail-followup-to' header field: http://cr.yp.to/proto/replyto.html



Reply to: