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 confusion and pstree


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/


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