Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Kill process by name instead of PID' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Kill process by name instead of PID
Authored by: adamjacobmuller on Jun 24, '03 02:14:59PM

**this is not a flame it's meant to be constructive critisim**
at the least you should not be matching things like ssh-agent if you choose ssh with this script. that is just wrong. sorry! because if you do that you can trigger all sorts of problems killing processes that you did not intend to kill...

this script is a duplication of functionality and while it is intersting and duplication of functionality is kinda what open source is all about this script is just dangerous!!!!
granted that the danger is minmal, esp if the script is not run as the superuser... there is little you can do, but throwing around kill's arbitrarily will screw things up!

for example i have both inetd and xinetd running here for some reason??? anyone know why??? and if i ran your script with 'inetd' it would kill inetd && xinetd that's just wrong... especially when there are better tools on the system that will do the job properly 'killall' ????

i'm not trying to be rude at all but... at least do exact process name matching.

[ Reply to This | # ]