[Sunhelp] kill script
Magnus Abrante
magnus.abrante at sweden.sun.com
Tue Aug 15 04:15:13 CDT 2000
> Does anyone have a kill script which will kill all the processes for a user?
Humm, so you would want to kill all of a users processes when he logs in?
why does that sounds like a bad idea :)?
I would probably to something like:
(to copy previous mail):
kill -9 `/usr/bin/ps -u <user> | grep -v $$ |grep -v PID |awk '{print $1}'`
at least that would work if you would do a console login, since $$ is the
shells pid.
//Magnus Abrante
/* This is my opinion and not the one of my empolyer */
More information about the SunHELP
mailing list