|
>>
|
No. 223
lame script. not useful in any circumstance, and does things ass backwards. if you're the user, you don't want to kill all your own processes. if you're someone else, you can't do it without being root.
the netstat is also redundant, btw, owned processes would have been killed in the first sweep, including processes owned
and -aufx and -pant don't work in GNU versions of utils. you want something like netstat -pate (no n, which will make your grep useless, and add e, which shows users)
ps could be -fu $1 or waux | grep $1
anyway, your script sucks.
|