Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: kill and pid files



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