Mombu the GNU Linux Forum

Go Back   Mombu the GNU Linux Forum > GNU_Linux > kill mozilla after idle time
User Name
Password
REGISTER NOW! Mark Forums Read




Reply
1 5th November 14:03
daniel gall
External User
 
Posts: 1
Default kill mozilla after idle time



Hi there,

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.

Thanks a lot for any help,
Daniel


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Reply With Quote


 


2 5th November 14:04
joseph a. nagy
External User
 
Posts: 1
Default kill mozilla after idle time



You could probably write a script that botted Moz back to the page if
there was no detected mouse activity, but that could be troublesome if
the person is writing a report and is using a website for a reference
(no mouse or browser activity, but the page is being used).

I'd say the best option is to set the homepage to the pre-defined site
and have the students close the browser when they are done and just
have the teacher go around in between classes (or a librarian if in the
library/comp lab) and close all the browser windows that are still open
(or hit the home button to return to the pre-defined site).


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Reply With Quote
3 8th November 02:37
hugo vanwoerkom
External User
 
Posts: 1
Default kill mozilla after idle time


I would write a program to do that and run it as a daemon at boot.
Because I know it, I would use c++ and Qt (but not necessarily for GUI
purposes) and invoke ps to snoop on who is idle.
Just looking at ps now, it appears you can do that although I know
nothing of ps except the man page (and few exaples ;-( ).
I think you're idea is great. Hugo.

--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Reply With Quote


 


4 8th November 02:37
hugo vanwoerkom
External User
 
Posts: 1
Default kill mozilla after idle time


This is a ridiculous suggestion of course, but do you know Backstreet
Ruby? You run up to 16 monitors, each with mouse+kbd on one PC. I am
doing that right now with only 2 monitors. Works great. Can use either
Sarge, Sid or Woody.

Hugo.


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Reply With Quote
5 8th November 02:37
vineet kumar
External User
 
Posts: 1
Default kill mozilla after idle time


* Daniel Gall (gall@epost.de) [031219 11:13]:


You could do this a few different ways. One idea is to set it up as a
sort of kiosk, wherein you have a simple "Welcome, click here to
start"-type screen, and logging in just gets you a full-screen mozilla.
Couple that with an auto-logout program.

Or, you could probably do something like xscreensaver. Set the screen
saver to some simple "Welcome" screen which also kills mozilla. Mozilla
was originally started in an endless loop, and so restarts itself. This
has the advantage that when the mouse is moved or any button pressed,
the welcome screen saver disappears and there's an already-running fresh
mozilla ready to use, instantly.

good times,
Vineet
--
http://www.doorstop.net/
--
#include<stdio.h>
int main() {
puts("Reader! Think not that \n"
"technical information \n"
"ought not be called speech;");
return 0;
}

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/43mF7z3S33fUb9ERAoseAKCuria94bBhtXGX4MGuwraB4t/7cgCeP3fx
8L0xG/MZl7VKN3qc9KiL8zo=
=vY/z
-----END PGP SIGNATURE-----
  Reply With Quote
Reply


Thread Tools
Display Modes




666