Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: kill and pid files
- X-seq: zsh-workers 3276
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxxxxxxxxxxx>
- To: luomat@xxxxxxxx
- Subject: Re: kill and pid files
- Date: Sat, 21 Jun 1997 14:46:40 -0400 (EDT)
- Cc: zsh-workers@xxxxxxxxxxxxxxx (Zsh hacking and development)
- 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author