| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:to:from:subject:date:message-id:references | |
| :mime-version:content-type:content-transfer-encoding; q=dns; s= | |
| default; b=urvFAvKwjwNapoRWVhSZMCPBPrpomS068VBiY0U7yv8BzoYenpMKv | |
| hbambm7HkDX9MQVkgm9H1EMkmTuQWpURprMHUAMRqJ6AxGdv4fbbZ9J1qgFQw8X6 | |
| WQpmbwpmpHqrvV8qCuQ3WMUM0qzz11trDRIxZgRUj/Rmg6avbQQ3ZQ= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:to:from:subject:date:message-id:references | |
| :mime-version:content-type:content-transfer-encoding; s=default; | |
| bh=pNRLxuYrkMV2PRteyIRpO0gDetw=; b=a1ovH42EBA4t0ZQOIaor+FrzMUn1 | |
| O/+kpRiTWJ3or6Cfyv1Ivw5RvK1Kzy8i6Ys/V3NjcS1bXbNHtsDbPVFiH1TGm66b | |
| 3kp7hzfmSVZw9TN1zCqP/SvBiv2KEL3HMNf2gSgPRcfCOqewvLybxezKa2i2ZBtf | |
| B7IMp5qhWVlDcE4= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-0.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 |
| X-HELO: | plane.gmane.org |
| To: | cygwin AT cygwin DOT com |
| From: | "Brian.Inglis" <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
| Subject: | Re: Child PID |
| Date: | Fri, 14 Feb 2014 07:04:35 +0000 (UTC) |
| Lines: | 40 |
| Message-ID: | <loom.20140214T080138-934@post.gmane.org> |
| References: | <52FD13AE DOT 5070108 AT mail DOT com> |
| Mime-Version: | 1.0 |
| User-Agent: | Loom/3.14 (http://gmane.org/) |
| X-IsSubscribed: | yes |
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |