From: Brian.Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Subject: Re: Child PID
Date: Fri, 14 Feb 2014 07:20:00 -0000 [thread overview]
Message-ID: <loom.20140214T080138-934@post.gmane.org> (raw)
In-Reply-To: <52FD13AE.5070108@mail.com>
Todd Poole <tpoole <at> mail.com> writes:
>
> I am in process of trying to process dumper on a pid. The pid I need to
> dump is a child of another program. If I use ps -W from command line and
> use the pid associated with the child all is well. I need it to be
> executed from a script. I have tried the following:
>
> Firefox &
> set plugin-container.exe
> dumper $PID $(ps -W | awk "/plugin-container.exe/,NF=8")
>
> Firefox is the parent that is opening. I have tried to isolate the child
> (plugin-container.exe) from the Command and get the pid but have not
> been successful. The PID is coming from the parent. Any suggestions
> greatly appreciaed.
> Thanks
>
Try this approach to access a page using a plugin requiring the container:
cygstart http://bbc.co.uk
winpid=''
while [ -z "$winpid" ]
do
winpid=$(ps -W | awk '/plugin-container/ { print $4 ; print $0 >
"/dev/stderr" }')
sleep 1
done
echo dumper plugin-container $winpid
dumper plugin-container $winpid
ls -gGho *.core
output:
5884 0 0 5884 ? 0 23:50:02 C:\Program Files
(x86)\Mozilla Firefox\plugin-container.exe
dumper plugin-container 5884
-rw-r--r--+ 1 120M Feb 13 23:51 plugin-container.core
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
prev parent reply other threads:[~2014-02-14 7:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-13 18:50 Todd Poole
2014-02-14 7:20 ` Brian.Inglis [this message]
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=loom.20140214T080138-934@post.gmane.org \
--to=brian.inglis@systematicsw.ab.ca \
--cc=cygwin@cygwin.com \
/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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).