From: Igor Vlasenko <vlasenko@imath.kiev.ua>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] pidof -x does not work
Date: Wed, 13 Oct 2010 00:11:46 +0300
Message-ID: <20101012211146.GB8380@dad.imath.kiev.ua> (raw)
In-Reply-To: <20101012210844.GA8380@dad.imath.kiev.ua>
On Wed, Oct 13, 2010 at 12:08:47AM +0300, Igor Vlasenko wrote:
в общем, выглядит как баг,
что не хорошо, так как pidof -x вызывается в getpidofproc()
в /etc/rc.d/init.d/functions-compat.
я пока извратился через pgrep -f, но это гораздо не аккуратнее.
> > > pidof -x не работает или это фича?
> > >
> > > echo sleep 20 > 1.sh
> > > $ sh 1.sh&; ps ax | grep 1.sh
> > > [1] 24100
> > > 24100 pts/15 SN 0:00 sh 1.sh
> > > $ pidof -x 1.sh
> > > $
> > > [1] + done sh 1.sh
> >
> > А кто вас учил запускать X, а отслеживать pidof'ом Y?
> это не я, а другой нехороший буратин.
> и для этого -x и придумана - цитируя man pidof
>
> -x Scripts too - this causes the program to also return process
> id's of shells running the named scripts.
>
> --
>
> Dr. Igor Vlasenko
> --------------------
> Topology Department
> Institute of Math
> Kiev, Ukraine
>
> _______________________________________________
> Devel mailing list
> Devel@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel
--
Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine
next prev parent reply other threads:[~2010-10-12 21:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-12 20:53 Igor Vlasenko
2010-10-12 21:03 ` Led
2010-10-12 21:08 ` Igor Vlasenko
2010-10-12 21:11 ` Igor Vlasenko [this message]
2010-10-12 21:17 ` Led
2010-10-12 21:22 ` Igor Vlasenko
2010-10-12 21:26 ` Led
2010-10-12 21:35 ` Igor Vlasenko
2010-10-12 21:43 ` Led
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=20101012211146.GB8380@dad.imath.kiev.ua \
--to=vlasenko@imath.kiev.ua \
--cc=devel@lists.altlinux.org \
/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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git