[Sunhelp] Problem on creating a script to kill processes.
Walter Trush
wtrush at uswest.com
Thu Jan 20 11:59:35 CST 2000
This is a multi-part message in MIME format.
--------------343A49152A0CC79530335928
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Miguel,
try
for input in `ps -ef | grep "name" |awk '{print $2}`
do
kill -9 $input
done
Wally
Miguel Demaerel wrote:
>
> Hoi All
>
> I'm a newbie on this platform.
>
> I wont to create a script that kill several processes.
>
> ps -ef | grep "name" |awk '{print $2}
> Now I have a list of PID, but how can I kill these processes?
>
> kill ???
>
> Are there any good site or books on writing scripts?
>
> Thanks
>
> Greetings Miguel
>
> ////
> (o o)
> ==============oOO==(_)==OOo==============
> Miguel DEMAEREL
> Sema Group Managed Services
> Raketstraat 98 - 1130 Brussel
> Belgium
> Tel: +32 (0)2 724 93 17
> Fax: +32 (0)2 724 92 92
> EMail: Miguel.Demaerel at SGMS.SEMA.BE
> =========================================
>
> _______________________________________________
> SunHELP maillist - SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
--------------343A49152A0CC79530335928
Content-Type: text/x-vcard; charset=us-ascii;
name="wtrush.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Walter Trush
Content-Disposition: attachment;
filename="wtrush.vcf"
begin:vcard
n:Trush;Walter J.
tel;fax:303-624-0990
tel;work:303-624-1957
x-mozilla-html:FALSE
org:US West IT
version:2.1
email;internet:wtrush at uswest.com
title:IT Specialist
adr;quoted-printable:;;930 15th St.=0D=0Arm 1100;Denver;CO;80202;USA
note;quoted-printable:There is no place like this place anywhere near this place,=0D=0Aso this must be this place.=0D=0A
x-mozilla-cpt:;-1
fn:Walter J. Trush
end:vcard
--------------343A49152A0CC79530335928--
More information about the SunHELP
mailing list