Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Date: Thu, 4 Aug 2005 15:26:02 -0400 (EDT) From: Jason Pyeron X-X-Sender: jpyeron@ns.pyerotechnics.com To: cygwin@cygwin.com Subject: pid confusion and pstree Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IsSubscribed: yes sorry if this wraps. what is my WINPID for the current bash? [jpyeron@mrlaptop mysql-4.1.13.new]$ ps -W | head -1 && ps -W | grep bash && pstree -Ahup PID PPID PGID WINPID TTY UID STIME COMMAND I 2356 1 2356 2356 con 1003 Jul 31 /usr/bin/bash 260 0 0 260 ? 0 Aug 3 C:\cygwin\bin\bash.exe 484 0 0 484 ? 0 Aug 3 C:\cygwin\bin\bash.exe 3004 0 0 3004 ? 0 Aug 3 C:\cygwin\bin\bash.exe 456 0 0 456 ? 0 Aug 3 C:\cygwin\bin\bash.exe ?(1)-+-bash(2356,jpyeron) |-bash(1516,mkruger)---mysql(476) `-cygrunsrv(3616,SYSTEM)---sshd(2956)-+-sshd(2852)---bash(2544,jpyeron)---mysql(236) |-sshd(3884)---bash(928,jpyeron) `-sshd(228)---bash(1592,jpyeron)-+-pico(2872) `-pstree(2348) [jpyeron@mrlaptop mysql-4.1.13.new]$ echo $$ 1592 also does anyone have a patch to show the WINPID for pstree? -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - 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/