<p>after having that file ready do a "users > test" to input the
active users into a file than you just put that as an array and make it an
exception now you can run a couple of times a day.<br /></p><p><br
/>--------------------------------------------------------------------------------<br
/> I've been considering something like this:<br /> <br /> for x in `cat
file-of-IDs-to-be-logged-off`<br /> do<br /> pkill -u $x<br /> done<br /> <br />
for similar reasons.  Put the above in a script, call it via root's cron <br /> in
the middle of the night, and when people arrive in the morning, <br /> everyone and
their sessions will have been reset.  The reason to use a <br /> file for the IDs
is that you don't want to kill every ID that has things <br /> running, for
example, root, apache, yourself perhaps, etc.  So, in the <br /> file you just put
your users' IDs.<br /> <br /> HTH.<br /> <br /> Petre<br /> <br /> William Fragakis
wrote:<br /> > Hi,<br /> > An issue we frequently have is that repeated
instances of programs <br /> > orphaned eventually bring down a server. It
arises from a couple of <br /> > situations: 1) a client crashing then gets
rebooted or 2) multiple <br /> > instances of a program are opened (eg TuxPaint)
instead of using an <br /> > already open program. The second type is the more
difficult because we <br /> > have a lot of young kids and in a special
situation, special needs kids <br /> > - so we want something transparent to
them. We'd rather sort the problem <br /> > out on the server side than
"educate" them since exploring the computer <br /> > is so much fun
for them. I've found scripts that kill a certain user, <br /> > I've found
scripts that kill certain processes but what I'd like is <br /> > something that
ends all the regular user processes, say, at midnight and <br /> > let's the
clients "refresh" without having to reboot or log back in. I <br /> >
don't want to restart the server every night - well, because it's a <br /> >
server and we love our uptime.<br /> > <br /> > Is anyone using anything to
end the processes for a certain group, say, <br /> > as a cron job?<br /> >
<br /> > TIAA<br /> > William Fragakis<br /> > Morris Brandon
Elementary<br /> > <br /> > Side note: AbiWord is so screaming fast to launch
and lightweight- any <br /> > thought about making it part of the default
install? Not that it's hard <br /> > to add but it is so much faster than OO.<br
/> > <br /> > _______________________________________________<br /> >
K12OSN mailing list<br /> > K12OSN@redhat.com<br /> >
https://www.redhat.com/mailman/listinfo/k12osn<br /> > For more info see  >
<br /> <br /> _______________________________________________<br /> K12OSN mailing
list<br /> K12OSN@redhat.com<br />
https://www.redhat.com/mailman/listinfo/k12osn<br /> For more info see  <br /> <br
/> <br /> <br /> <br /> <br /> <br /> <br /></p>