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]

Looking for the 'stdout' of a Windows application


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
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?


C:\Windows\system32>handle -a -p 5024

Handle v3.42
Copyright (C) 1997-2008 Mark Russinovich
Sysinternals -

    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      
   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          
  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       
  1FC: Thread        cleartool.exe(5024): 6204
  200: File  (---)   \Device\NamedPipe\cygwin-tty3-to-master
  204: Section      
  208: Event
  20C: Key          
  210: Event
  214: Key          
  218: Key           HKLM\SYSTEM\ControlSet001\Control\Nls\Locale
  21C: Key           HKLM\SYSTEM\ControlSet001\Control\Nls\Locale\Alternate
  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  (---)  
  244: Process
  248: Process
  24C: File  (---)  
  250: Process
  254: Process
  258: Process
  25C: Process
  260: Event
  264: Process
  268: File  (---)  
  26C: File  (---)  
  270: File  (---)  
  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
  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  2000-2004 Mark Russinovich

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.
From 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
//bar                                  | //bloh
*** Automatic: Applying CHANGE from file 3 [line 2]
-----------[after 3 file 1]------------|----------[inserted 4 file
                                      -| //blah
-----------[after 3 file 1]------------|----------[inserted 4 file
                                      -| //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]
Moved contributor "a.c" to "a.c.contrib".
Output of merge is in "a.c".
Recorded merge of "a.c".

View this message in context:
Sent from the Cygwin list mailing list archive at

Problem reports:
Unsubscribe info:

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