www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.9 required=5.0 tests=AWL,BAYES_50,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <26769438.post@talk.nabble.com> |
Date: | Sun, 13 Dec 2009 12:30:31 -0800 (PST) |
From: | Marc Girod <marc DOT girod AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Looking for the 'stdout' of a Windows application |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
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 |
Hello, I run a proprietary application, IBM Rational cleartool.exe from cygwin. In some usage scenarios which I am now interested in, it prompts the user for an interactive decision. I do not get this prompt under cygwin (either X --emacs shell or xterm-- or the Cygwin terminal. My process just hangs. I get it in the Windows Command Prompt, in plain text mode, and I can reply there. I give an example below. I tried to use the SysInternals tools to find what kind of file descriptor might be open while my process is hanging. My first surprise is that the pid reported by pslist doesn't match this reported under cygwin by ps. The tools I used is: handle -a -p <pid> (using the pid reported by: pslist cleartool) The list is rather long, and I am not sure what to look at there. My own SID shows up there: USID: NT:S-1-5-21-507921405-1897051121-725345543-644351 Any chance to get the output to my cygwin shell? Thanks Marc C:\Windows\system32>handle -a -p 5024 Handle v3.42 Copyright (C) 1997-2008 Mark Russinovich Sysinternals - www.sysinternals.com 4: File (---) 8: File (---) C:\cygwin2\home\emagiro C: File (---) C:\cygwin2\home\emagiro 10: File (---) C:\cygwin2\home\emagiro 14: File (---) C:\cygwin2\home\emagiro 18: File (---) C:\cygwin2\home\emagiro 1C: File (---) C:\cygwin2\home\emagiro 20: File (---) C:\cygwin2\home\emagiro 24: File (---) \Device\mvfs\view\emagiro_cw\atcctest\foo 28: File (---) \Device\mvfs\view\emagiro_cw\atcctest\foo 2C: File (---) \Device\mvfs\view\emagiro_cw\atcctest\foo 30: Section 34: File (---) \Device\mvfs\view\emagiro_cw\atcctest\foo 38: File (---) \Device\mvfs\view\emagiro_cw\atcctest\foo 3C: File (---) \Device\mvfs\view\emagiro_cw\atcctest\foo 40: File (---) \Device\mvfs\view\emagiro_cw\atcctest\foo 44: File (---) \Device\mvfs\view\emagiro_cw\atcctest\foo 48: Directory \KnownDlls 4C: File (---) \Device\mvfs\view\emagiro_cw\atcctest\foo 50: Event 54: Mutant 58: Process 5C: Event 60: WindowStation \Sessions\1\Windows\WindowStations\WinSta0 64: Key HKLM 68: Event 6C: Process sh.exe(5820) 70: Key HKLM\SYSTEM\ControlSet001\Control\Session Manager 74: Directory \BaseNamedObjects\cygwin1S5 78: Section \BaseNamedObjects\cygwin1S5\shared.5 7C: Directory \BaseNamedObjects\cygwin1S5 80: Section \BaseNamedObjects\cygwin1S5\shared.5 84: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 88: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 8C: Section=20=20=20=20=20=20 \BaseNamedObjects\cygwin1S5\S-1-5-21-507921405-1897051121-725345543-644351.1 90: Key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\DllNXOptions 94: Directory \BaseNamedObjects\cygwin1S5 98: Section \BaseNamedObjects\cygwin1S5\shared.5 9C: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 A0: Key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options A4: Event A8: Directory \BaseNamedObjects\cygwin1S5 AC: Directory \BaseNamedObjects\cygwin1S5 B0: Section \BaseNamedObjects\cygwin1S5\shared.5 B4: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 B8: Section \BaseNamedObjects\cygwin1S5\shared.5 BC: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 C0: WindowStation \Sessions\1\Windows\WindowStations\WinSta0 C4: Desktop \Default C8: Directory \BaseNamedObjects\cygwin1S5 CC: Directory \BaseNamedObjects\cygwin1S5 D0: Section \BaseNamedObjects\cygwin1S5\shared.5 D4: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 D8: Section \BaseNamedObjects\cygwin1S5\shared.5 DC: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 E0: Event E4: Process E8: Directory \BaseNamedObjects\cygwin1S5 EC: Section \BaseNamedObjects\cygwin1S5\shared.5 F0: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 F4: Directory \BaseNamedObjects\cygwin1S5 F8: Event \BaseNamedObjects\cygwin1S5\cygtty.output.done.0 FC: Event \BaseNamedObjects\cygwin1S5\cygtty.ioctl.done.0 100: Event \BaseNamedObjects\cygwin1S5\cygtty.ioctl.request.0 104: Event \BaseNamedObjects\cygwin1S5\cygtty.input.avail.0 108: Mutant \BaseNamedObjects\cygwin1S5\cygtty.output.mutex.0 10C: Mutant \BaseNamedObjects\cygwin1S5\cygtty.input.mutex.0 110: Section \BaseNamedObjects\cygwin1S5\shared.5 114: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 118: Event 11C: Event 120: Event 124: Directory \BaseNamedObjects\cygwin1S5 128: Section \BaseNamedObjects\cygwin1S5\shared.5 12C: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 130: Directory \BaseNamedObjects\cygwin1S5 134: Section \BaseNamedObjects\cygwin1S5\shared.5 138: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 13C: Event 140: Directory \BaseNamedObjects\cygwin1S5 144: Section \BaseNamedObjects\cygwin1S5\shared.5 148: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 14C: Directory \BaseNamedObjects\cygwin1S5 150: Section \BaseNamedObjects\cygwin1S5\shared.5 154: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 158: Event 15C: Directory \Sessions\1\BaseNamedObjects 160: Directory \BaseNamedObjects\cygwin1S5 164: Directory \BaseNamedObjects\cygwin1S5 168: Section \BaseNamedObjects\cygwin1S5\shared.5 16C: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 170: Section \BaseNamedObjects\cygwin1S5\shared.5 174: Directory \Sessions\1\BaseNamedObjects\cygwin1S5 178: Event 17C: Key=20=20=20=20=20=20=20=20=20=20 HKLM\SYSTEM\ControlSet001\Control\NetworkProvider\HwOrder 180: File (---) \Device\NamedPipe\cygwin-tty3-from-master 184: File (---) \Device\NamedPipe\cygwin-tty2-to-master 188: File (---) \Device\NamedPipe\cygwin-tty2-from-master 18C: Semaphore 190: Semaphore 194: Process 198: Semaphore 19C: Semaphore 1A0: Semaphore 1A4: Semaphore 1A8: Mutant \Sessions\1\BaseNamedObjects\cygwin1S5\socket.0 1AC: Key HKCU 1B0: Mutant \BaseNamedObjects\CCshmemV3_mutex 1B4: Mutant \BaseNamedObjects\cygwin1S5\cygtty.input.mutex.3 1B8: Event \BaseNamedObjects\cygwin1S5\cygtty.input.avail.3 1BC: Section \BaseNamedObjects\CCshmemV3_area 1C0: Event 1C4: Mutant \BaseNamedObjects\cygwin1S5\cygtty.output.mutex.3 1C8: Event \BaseNamedObjects\cygwin1S5\cygtty.slave_alive.3 1CC: Event 1D0: Event 1D4: Process 1D8: Event 1DC: Thread cleartool.exe(5024): 6204 1E0: IoCompletion 1E4: IoCompletion 1E8: IoCompletion 1EC: IoCompletion 1F0: IoCompletion 1F4: Mutant \Sessions\1\BaseNamedObjects\cygwin1S5\socket.0 1F8: Mutant=20=20=20=20=20=20=20 \Sessions\1\BaseNamedObjects\CCshmemV3_mutex.S-1-5-21-507921405-1897051121-= 725345543-644351 1FC: Thread cleartool.exe(5024): 6204 200: File (---) \Device\NamedPipe\cygwin-tty3-to-master 204: Section=20=20=20=20=20=20 \Sessions\1\BaseNamedObjects\CCshmemV3_area.S-1-5-21-507921405-1897051121-7= 25345543-644351 208: Event 20C: Key=20=20=20=20=20=20=20=20=20=20 HKLM\SYSTEM\ControlSet001\Services\WinSock2\Parameters\Protocol_Catalog9 210: Event 214: Key=20=20=20=20=20=20=20=20=20=20 HKLM\SYSTEM\ControlSet001\Services\WinSock2\Parameters\NameSpace_Catalog5 218: Key HKLM\SYSTEM\ControlSet001\Control\Nls\Locale 21C: Key HKLM\SYSTEM\ControlSet001\Control\Nls\Locale\Alternate Sorts 220: Key HKLM\SYSTEM\ControlSet001\Control\Nls\Language Groups 224: Event 228: Event 22C: File (---) \Device\KsecDD 230: Process 234: Process 238: Process 23C: Section 240: File (---)=20=20 C:\Windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6001.1= 8175_none_9e7bbe54c9c04bca 244: Process 248: Process 24C: File (---)=20=20 C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.= 0.6001.18000_none_5cdbaa5a083979cc 250: Process 254: Process 258: Process 25C: Process 260: Event 264: Process 268: File (---)=20=20 C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.= 0.6001.18000_none_5cdbaa5a083979cc 26C: File (---)=20=20 C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.3053_no= ne_d08d7bba442a9b36 270: File (---)=20=20 C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.3053_no= ne_d08d7bba442a9b36 274: Semaphore 278: Event 27C: Semaphore 280: Process 284: Event 288: Process 28C: Event 290: Process 294: Process 298: Process 29C: Event 2A0: Event 2A4: Event 2A8: Mutant \Sessions\1\BaseNamedObjects\cygwin1S5\socket.0 2AC: Process 2B0: Process 2B4: Process 2B8: Process 2BC: Process 2C0: Process 2C4: Process 2C8: Process 2CC: Process 2D0: Process 2D4: Process 2D8: Process 2DC: Process 2E0: Event 2E4: Event 2E8: Process 2EC: Event 2F0: Mutant 2F4: Event 2F8: Mutant 2FC: Event 300: Event 304: Process 308: File (---) \Device\Afd 30C: File (---) \Device\Nsi 310: File (---) \Device\Afd 314: File (---) \Device\Afd 318: Process 31C: File (---) \Device\Afd 320: File (---) \Device\Afd 328: Process cleardiff.exe(4220) 32C: Mutant \BaseNamedObjects\cygwin1S5\cygtty.input.mutex.2 334: Event \BaseNamedObjects\cygwin1S5\cygtty.input.avail.2 33C: Mutant \BaseNamedObjects\cygwin1S5\cygtty.output.mutex.2 340: Event \BaseNamedObjects\cygwin1S5\cygtty.slave_alive.2 344: Process sh.exe(5820) 348: Section \BaseNamedObjects\cygwin1S5\cygpid.5820 34C: Key HKCU\Software\Microsoft\Windows NT\CurrentVersion 350: Key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags 35C: File (---) C:\cygwin2\usr\share\fonts\TTF\VeraMono.ttf 364: Section 368: Section 36C: Section 370: Section 374: Section 378: Section 37C: Section 380: Section 384: Section 388: Section 394: File (---) C:\cygwin2\usr\share\fonts\TTF\VeraMoIt.ttf 398: File (---) C:\cygwin2\usr\share\fonts\TTF\VeraMoBd.ttf C:\Windows\system32>pslist cleartool pslist v1.28 - Sysinternals PsList Copyright =C2=AE 2000-2004 Mark Russinovich Sysinternals Process information for EV0016D4A35054: Name Pid Pri Thd Hnd Priv CPU Time Elapsed Time cleartool 5024 8 1 222 7100 0:00:00.249 1:05:30.669 And an example of the (full) transcript from the Windows Command Prompt. =46rom a cygwin shell, it gets truncated before the 'Do you want....' O:\atcctest\foo>cleartool merge -to a.c -ver /main/mg-013/LATEST ******************************** <<< file 1: \atcctest\foo\a.c@@\main\mg-013\5 >>> file 2: \atcctest\foo\a.c@@\main\mg-013\21 >>> file 3: a.c ******************************** ----------[changed 2 file 1]-----------|---------[changed to 2 file 3]--------- //bar | //bloh -|- *** Automatic: Applying CHANGE from file 3 [line 2] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D -----------[after 3 file 1]------------|----------[inserted 4 file 2]---------- -| //blah |- -----------[after 3 file 1]------------|----------[inserted 4 file 3]---------- -| //bloh |- Do you want the INSERTION made in file 2? [yes] Applying INSERT from file 2 [line 4] Do you want the INSERTION made in file 3? [no] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Moved contributor "a.c" to "a.c.contrib". Output of merge is in "a.c". Recorded merge of "a.c". --=20 View this message in context: http://old.nabble.com/Looking-for-the-%27stdo= ut%27-of-a-Windows-application-tp26769438p26769438.html Sent from the Cygwin list mailing list archive at Nabble.com. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |