This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PID & WINPID


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]