Steve Bowman
MIS
I have a situation with one of my processes. It is a C executable that sends socket communication to another server as a receiver. When the receiving side gets hung or otherwise stops receiving my connects there is a long period until timeout. I am sending many socket connections per minute. What I ultimately end up with is a couple hundred "sender 171.1.1.102" processes queued up waiting for a timeout until they die a natural death.
What I am looking for is either command line ideas for a cmd or a script that will take the process name "sender 171.1.1.102" and do a kill -9 on them so I can clean up the mess when it happens without waiting for each to timeout naturally or kill them all with kill -9 [pid].
I realize I could just shorten the timeout but in some circumstances, I need the longer timeout.
Steve Bowman
Independent Technology, Inc.
CA, USA
What I am looking for is either command line ideas for a cmd or a script that will take the process name "sender 171.1.1.102" and do a kill -9 on them so I can clean up the mess when it happens without waiting for each to timeout naturally or kill them all with kill -9 [pid].
I realize I could just shorten the timeout but in some circumstances, I need the longer timeout.
Steve Bowman
Independent Technology, Inc.
CA, USA