Newsgroups: fj.questions.unix
Path: galaxy.trc.rwcp.or.jp!news.trc!nf2.iij.ad.jp!nr0.iij.ad.jp!news.iij.ad.jp!messe!sc6!nd1!islix!oanws04!nsmrtks
From: nsmrtks@oa.sharp.co.jp (NISHIMURA Takeshi)
Subject: Re: Ignore kill error in foreach looping
In-Reply-To: akira@rsch.tuis.ac.jp's message of 03 Jul 1998 11:48:25 GMT
Message-ID: <Evr79u.9Ft@oa.sharp.co.jp>
Followup-To: fj.questions.unix
Lines: 21
Sender: news@oa.sharp.co.jp
Nntp-Posting-Host: rainbow
Organization: OA Equipment Div., SHARP Corp., Nara, Japan.
References: <AKIRA.98Jul3204825@adlib.rsch.tuis.ac.jp>
Date: Wed, 8 Jul 1998 02:08:02 GMT
Xref: galaxy.trc.rwcp.or.jp fj.questions.unix:8633
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.questions.unix&nb=8633&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

 $B@>B<(B@$BBgOB74;3$H?=$7$^$9!#(B

In article <AKIRA.98Jul3204825@adlib.rsch.tuis.ac.jp>
 akira@rsch.tuis.ac.jp (Akira NISHIMURA) writes:

> set pid = `cat pidfile`
> foreach id ($pid)   
>     kill -9 $id
> end

 kill -9 `cat pidfile` $B$H$7$J$$$N$O2?$+M}M3$,$"$j$^$9$+(B?

 $B$=$l$H!"$$$-$J$j(B -9 $B$rAw$C$F$$$$$N$G$7$g$&$+!#(B


 $B$H$3$m$G!"(Bkill -0 pid $B$H$$$&$N$O2?$G$7$g$&(B?
 $B%^%K%e%"%k$r8+$F$bNI$/J,$+$j$^$;$s$G$7$?!#(B

-- 
$B@>B<(B $BIp;J(B((
http://www.orions.ne.jp/snara/nisimura/ ))
