delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/09/10:17:40

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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; q=dns; s=default; b=D1
DqKc6Q0nr0WBRkmLjwcW2YxRcjfMJfHfviZk/XJM8Npjp3LXO7qk91f4OPSsJQ0/
d+nr13QzjcJgbpQN7HxJ0Bqbwbc8fCzznDC5E2wdZcaA3PiIPmJ7BnaoEMgRloc9
28Dg9Cb0AzQo/emW/9w7e9a9oi2f2jouvJrTZXGnc=
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:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type; s=default; bh=0ApmL0Oc
/RS3eNizAuR63T1Lpgg=; b=MQPf4Xiu/Ujbk1hdLh8NETEmNuaPH7AB9O6fozds
KynbDbVFDKoO7jjHdM5tKPl+JdpbqgcMwCvBmeYjTqCWVXjDbrECenhfuVoqpJ+R
NsxH7GoAR01bhHc4fC9N0LA/KG7Fer0BucCn+/IpjPVVjgep4iUZFEV2MXe/EiIH
ZHk=
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.9 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-pb0-f49.google.com
MIME-Version: 1.0
X-Received: by 10.68.184.66 with SMTP id es2mr32191462pbc.19.1391959042711; Sun, 09 Feb 2014 07:17:22 -0800 (PST)
In-Reply-To: <52F796A3.5090400@mail.com>
References: <52F796A3 DOT 5090400 AT mail DOT com>
Date: Sun, 9 Feb 2014 09:17:22 -0600
Message-ID: <CAAXzdLVvh87N_y3KtVLCcwL4HKMBHS62zUKe6WAPShuR_2+u_g@mail.gmail.com>
Subject: Re: PID & WINPID
From: Steven Penny <svnpenn AT gmail DOT com>
To: Andrey Repin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

On Sun, Feb 9, 2014 at 8:54 AM, Todd Poole wrote:
> What is a simple straight forward way I can code the script to obtain the
> process cygwin pid by the process name and perform dumper?

This should get you started

    set calc
    dumper $1 $(ps -W | awk "/$1/,NF=1")

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019