From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8453 invoked from network); 22 Jun 1997 04:11:16 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 22 Jun 1997 04:11:16 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id AAA25022; Sun, 22 Jun 1997 00:02:43 -0400 (EDT) Resent-Date: Sun, 22 Jun 1997 00:02:43 -0400 (EDT) To: zsh-workers@math.gatech.edu Path: mason From: mason@primenet.com.au (Geoff Wing) Newsgroups: lists.zsh.workers Subject: Re: kill and pid files Date: 22 Jun 1997 04:06:36 GMT Organization: PrimeNet Message-ID: References: from Timothy Luoma at "Jun 21, 97 11:39:23 am" <199706211846.OAA01626@hzoli.home> Reply-To: mason@primenet.com.au NNTP-Posting-Host: coral.primenet.com.au X-Newsreader: slrn (0.9.3.2 UNIX) Resent-Message-ID: <"Hq6633.0.v66.ZFAhp"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3280 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On 22 Jun 1997 04:49:10 +1000, Zoltan Hidvegi wrote: :> > pid () { :> > setopt localoptions extendedglob :> > local i :> > for i :> > do :> > echo "${(M)${(M)${(f)$(ps acx)}:%* $i #}## #<->}" :> > done :> > } :> Yes but what if there are TWO processes running with the name 'foo'? And what if they're shell scripts? And what if this has nothing to do with zsh.workers and should at most be in zsh.users? -- Geoff Wing [mason@primenet.com.au] Technical Manager Phone : +61-3-9818 2977 PrimeNet - Internet Consultancy Facsimile: +61-3-9819 3788 Web : Mobile : 0412 162 441