<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.12.1">
</HEAD>
<BODY>
Funny, I just ran into the same kind of problem myself not so long ago. Talked to they guys on IRC and was given the following:<BR>
<BR>
<TT>for user in $(getent passwd | awk -F: '$3 > 999 {print $1}'); do echo $user; pgrep -u ${user} gnome-panel || pkill -u ${user} bonobo; done</TT><BR>
<BR>
Now, my system is running the "usual" gnome stuff, so this works for killing off processes from anyone not logged in. If you're using KDE or XFCE, you'll have to scan for something other thant gnome-panel.<BR>
<BR>
Oliver Grawert has suggested this should go into the ldm script somehow. As I'm not familiar with how to play around with that file, I just stuck in a cron job to run hourly.<BR>
<BR>
On Wed, 2007-17-01 at 14:30 -0800, john wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
<FONT COLOR="#000000">Hello all,</FONT><BR>
<BR>
<FONT COLOR="#000000">I'm running ltsp 4.2 on Ubuntu LTS 6.06 using win2k3 AD for auth. I find that at the end of the day I have a lot of leftover student user processes running, and I'd like to have a little script that kills them all after school. Does anyone have something ready-made or do I need to brew one myself? </FONT><BR>
<BR>
<FONT COLOR="#000000">TIA!</FONT><BR>
<BR>
<FONT COLOR="#000000">John</FONT><BR>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Clay Berlo <<A HREF="mailto:clay.berlo@dsbn.edu.on.ca">clay.berlo@dsbn.edu.on.ca</A>><BR>
DSBN Technical Services
</TD>
</TR>
</TABLE>
</BODY>
</HTML>