zsh-workers
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi <hzoli@ny.frontiercomm.net>
To: luomat@peak.org
Cc: zsh-workers@math.gatech.edu (Zsh hacking and development)
Subject: Re: kill and pid files
Date: Sat, 21 Jun 1997 14:46:40 -0400 (EDT)	[thread overview]
Message-ID: <199706211846.OAA01626@hzoli.home> (raw)
In-Reply-To: <Pine.SUN.3.96.970621113729.17494A-100000@kira> from Timothy Luoma at "Jun 21, 97 11:39:23 am"

> > 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'?

The above function should find all processes called foo.  It should work
on all systems with BSD-style ps.

Zoltan


  reply	other threads:[~1997-06-21 18:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199706211508.LAA08120@kira.peak.org>
1997-06-21 16:37 ` Zoltan Hidvegi
1997-06-21 18:39   ` Timothy Luoma
1997-06-21 18:46     ` Zoltan Hidvegi [this message]
1997-06-22  4:06       ` Geoff Wing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199706211846.OAA01626@hzoli.home \
    --to=hzoli@ny.frontiercomm.net \
    --cc=luomat@peak.org \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).