delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/05/14:07:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Fri, 5 Aug 2005 14:07:38 -0400 (EDT)
From: Jason Pyeron <jpyeron AT pdinc DOT us>
X-X-Sender: jpyeron AT ns DOT pyerotechnics DOT com
To: cygwin AT cygwin DOT com
Subject: Re: pid confusion and pstree
In-Reply-To: <20050805180039.GA2796@efn.org>
Message-ID: <Pine.LNX.4.62.0508051403160.8312@ns.pyerotechnics.com>
References: <Pine DOT LNX DOT 4 DOT 62 DOT 0508041520500 DOT 25913 AT ns DOT pyerotechnics DOT com> <20050805180039 DOT GA2796 AT efn DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes

that is EVIL

thanks

On Fri, 5 Aug 2005, Yitzchak Scott-Thoennes wrote:

> On Thu, Aug 04, 2005 at 03:26:02PM -0400, Jason Pyeron wrote:
>> also does anyone have a patch to show the WINPID for pstree?
>
> $ pstree -Ahup|perl -wpe's#\d+#($w=Cygwin::pid_to_winpid($&))&&$w!=$&?"$&/$w":$&#ge'
> ?(1)-+-bash(2100,sthoenna)---mutt(1696/2384)---emacs(2744/1300)
>     |-bash(3728,sthoenna)---sleep(1328/2328)
>     |-bash(804,sthoenna)---mutt(3912/1672)
>     |-bash(1864,sthoenna)-+-perl(1744/3400)
>     |                     `-pstree(1572)
>     |-cygrunsrv(1652,SYSTEM)---cygserver(248/336)
>     `-cygrunsrv(628,SYSTEM)---syslogd(720/752)
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Partner & Sr. Manager             7 West 24th Street #100     -
- +1 (443) 921-0381                 Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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