From: Timothy Luoma <luomat@peak.org>
To: Zoltan Hidvegi <hzoli@ny.frontiercomm.net>
Cc: Zsh hacking and development <zsh-workers@math.gatech.edu>
Subject: Re: kill and pid files
Date: Sat, 21 Jun 1997 11:39:23 -0700 (PDT) [thread overview]
Message-ID: <Pine.SUN.3.96.970621113729.17494A-100000@kira> (raw)
In-Reply-To: <199706211637.MAA00840@hzoli.home>
On Sat, 21 Jun 1997, Zoltan Hidvegi wrote:
>
> Did you try my script? kill -TERM `pid foo bar baz` will kill all foo, bar,
> baz named processes. And of course it can be improved, since sed is not
> necessary:
>
> 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'?
I want to be able to kill them both with one
kill -9 `pid foo`
But this may be a different in what we are calling using 'ps'
TjL
next prev parent reply other threads:[~1997-06-21 18:41 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 [this message]
1997-06-21 18:46 ` Zoltan Hidvegi
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=Pine.SUN.3.96.970621113729.17494A-100000@kira \
--to=luomat@peak.org \
--cc=hzoli@ny.frontiercomm.net \
--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).