Scripting help

From: Woods Marc A Contr WRALC/LNXA <Marc.Woods_at_robins.af.mil>
Date: Wed, 27 Mar 2002 13:51:17 -0500

I was wondering if I could solicit some scripting help.

I want to be able to
ps | grep <command>
and from the results send a kill command to kill all of the results

essentially

if I were to run

ps agh | grep shell | grep -v "grep shell"

a fictitious result would appear listing a few different headers for my
matching grep, from the list that would return I would like to kill those
processes....I just don't know how to load the results up as a variable or
something....

Thanks in advance

Marc
Received on Wed Mar 27 2002 - 19:11:30 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT