tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Woods Marc A Contr WRALC/LNXA <Marc.Woods () robins ! af ! mil>
To: tru64-unix-managers
Subject: Scripting help
Date: Wed, 27 Mar 2002 18:51:17 +0000	[thread overview]
Message-ID: <102653731622897.tru64-unix-managers.marc@archive.invalid> (raw)

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 

             reply	other threads:[~2002-03-27 18:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-27 18:51 Woods Marc A Contr WRALC/LNXA [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-04-05 15:07 scripting help Kirkland, Mike # IHTUL
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox