Here is the script that kills old users processes
Scott Balneaves
sbalneav at legalaid.mb.ca
Fri Nov 21 15:28:33 GMT 2008
On Fri, Nov 21, 2008 at 09:01:19AM +0100, Mattias Hemmingtsson wrote:
> awk -F: '{print $1,$3}' kill.log | while read user pid
> do
> (( pid > 1001 )) && skill -9 -u $user
> done
Depending on who's "nobody" on your system (on many it's 65535), you might want
to exclude nobody as well. Sometimes network services, or other "important"
processes run as nobody.
Scott
--
Scott L. Balneaves | Today's weirdness is tomorrow's reason why.
Systems Department | -- Hunter S. Thompson
Legal Aid Manitoba |
More information about the edubuntu-users
mailing list