[SunHELP] Speaking of killing processes....
    Jeff Howie 
    sunhelp at sunhelp.org
       
    Fri Feb 23 16:31:23 CST 2001
    
    
  
David Bishop wrote:
> I need to have a script go out and kill a group of processes, all with the
> same binary name.  I've figured out how to get a list of the process ids (ps
> -ax | grep datd | cut -f1 -d" ") but don't know enough about shell
> programming to figure out how to stuff that into an array, then iterate
> through that array doing a kill -9.  Any ideas? I know this should be a quick
> 2 or 3 liner, I'm just braindead on a Friday afternoon :-)  And yes, this is
> all standard bourne shell on a Solaris 7 Ultra60.  Not that is should matter
> to the shell...
Just use 'pkill bin_name'
-- 
THKS :&)
Jeff Howie
    
    
More information about the SunHELP
mailing list