×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

SCO Unix Bulk Process Killer

SCO Unix Bulk Process Killer

SCO Unix Bulk Process Killer

(OP)
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

RE: SCO Unix Bulk Process Killer

Do you have pgrep and/or pkill available?
PGREP(1)                         User Commands                        PGREP(1)

NAME
       pgrep,  pkill  -  look  up  or signal processes based on name and other
       attributes

SYNOPSIS
       pgrep [options] pattern
       pkill [options] pattern

 

--
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close