Save a process. Do the match in awk... (untested) awk '/path/[s]watch/{printf "kill -9 -%s\n", $2}'|sh ------------------------------------------------------------------------ Jim Wildman jimat_private On Fri, 24 Aug 2001, Mordechai T. Abzug wrote: > On Fri, Aug 24, 2001 at 06:08:22AM -0700, Stuart Kendrick wrote: > > > Yet, if I manually type "kill {pid1} {pid2}", where pid1 and pid2 are the > > two swatch PIDs, then swatch dies just fine. > > That stop code was pretty scary. :) > > You're running Solaris 7, right? Is the child process in the same > process group? I like to use this style of code: > > ps -eo pid,pgid,args|grep '/path/[s]watch'|\ > awk '{printf "kill -9 -%s\n", $2}'|sh > > - Morty > > --------------------------------------------------------------------- > To unsubscribe, e-mail: loganalysis-unsubscribeat_private > For additional commands, e-mail: loganalysis-helpat_private > --------------------------------------------------------------------- To unsubscribe, e-mail: loganalysis-unsubscribeat_private For additional commands, e-mail: loganalysis-helpat_private
This archive was generated by hypermail 2b30 : Fri Aug 24 2001 - 14:56:37 PDT