RE: New installation does not connect stdout to terminal

2006-01-11 Thread Dave Korn
Russell K Montgomery wrote:
> Got it resolved.  I checked the properties for what was being invoked by
> the Cygwin icon since Christopher Faylor suggested that I invoke things
> clean by hand and when I went  and this system had extra characters
> after the "C:\Cygwin\cygwin.bat  x#1>ax#45" which my other system
> doesn't have.  I removed them and that resolved the problem.


  Ah, so stdout was _already_ redirected!  That makes it much easier to
understand!


cheers,
  DaveK
-- 
Can't think of a witty .sigline today



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



Re: New installation does not connect stdout to terminal

2006-01-11 Thread Russell K Montgomery
Got it resolved.  I checked the properties for what was being invoked by 
the Cygwin icon since Christopher Faylor suggested that I invoke things 
clean by hand and when I went  and this system had extra characters 
after the "C:\Cygwin\cygwin.bat  x#1>ax#45" which my other system 
doesn't have.  I removed them and that resolved the problem.


Thanks to everyone for their help and quick response.  You're a great bunch.

Russell Montgomery



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



Re: New installation does not connect stdout to terminal

2006-01-11 Thread Christopher Faylor
On Wed, Jan 11, 2006 at 04:59:47PM -, Dave Korn wrote:
>Russell K Montgomery wrote:
>>I'm attaching the results of "cygcheck -s -v -r > chgcheck.out"
>
>Well, I'd get rid of the set of clashing unix-alike tools that you have
>installed under C:\bin, for a start, or at any rate remove them from
>the $PATH setting, and then give setup.exe a quick re-run to give it a
>chance to re-do anything that might have gone wrong last time.
>Otherwise this is going to be definitely a tricky one to track down.

Yes, I suspect that this will boil down to non-cygwin tools being
invoked somehow.  So, starting bash with an absolute path from a windows
command prompt and then verifying that invoking commands using absolute
paths would be instructive:

  c:\>c:\cygwin\bin\bash
  bash$ /bin/ls

cgf


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



RE: New installation does not connect stdout to terminal

2006-01-11 Thread Dave Korn
Russell K Montgomery wrote:
> I have installed cygwin on a new Windows XP box and when I run Cygwin I
> do not get output from commands on the terminal.  The only way I can get
> the output is to redirect stdout to stderr "ls -l 1>&2"

  That's the wackiest bug I've heard of in a while!  Does the same happen in a
rxvt window and in a DOS box, or is it only one or the other?

> I have used Cygwin for several years on Windows 98 and for the past year
> on another Windows XP box but have not seen any behavior like this.  I
> have searched the archives and not found any reports that are similar to
> this behavior.  Have I overlooked something?

  No, this is utterly unique and bizarre, and it's very hard to imagine how it
could even begin to happen.  Maybe someone's gone and created a real file
called /dev/console and it's messing with i/o because it's not a special
device node?

> I'm attaching the results of "cygcheck -s -v -r > chgcheck.out"

  Well, I'd get rid of the set of clashing unix-alike tools that you have
installed under C:\bin, for a start, or at any rate remove them from the $PATH
setting, and then give setup.exe a quick re-run to give it a chance to re-do
anything that might have gone wrong last time.  Otherwise this is going to be
definitely a tricky one to track down.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today



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



Re: New installation does not connect stdout to terminal

2006-01-11 Thread Igor Peshansky

On Wed, 11 Jan 2006, Russell K Montgomery wrote:


I have installed cygwin on a new Windows XP box and when I run Cygwin I
do not get output from commands on the terminal.  The only way I can get
the output is to redirect stdout to stderr "ls -l 1>&2"

I have used Cygwin for several years on Windows 98 and for the past year
on another Windows XP box but have not seen any behavior like this.  I
have searched the archives and not found any reports that are similar to
this behavior.  Have I overlooked something?


No, this is something new (and weird).  First, can you try a snapshot (see
 for download and installation instructions)
and report if it fixes the problem for you?  The Cygwin developers are
very close[1] to releasing 1.5.19, so any testing of snapshots is helpful.

A WAG: does "/bin/ls -l" have the same problem?

If the snapshot doesn't fix your problem, some more information would be
needed for us to try reproducing this: are you running the command from a
bash shell, from rxvt, from a CMD prompt, or somewhere else?  Does it fail
for all commands (e.g., time)?  When you run a command that outputs to
both stdout and stderr, do you only see stderr output?  Do you see the
output of Windows commands (e.g., "net")?  If you have access to a machine
with the same DLL version that doesn't exhibit this problem, could you
please run the command under "strace" on both machines (i.e., run
"/bin/strace -o ls.strace /bin/ls -l") and compare the output?

FWIW, your cygcheck output looks ok.
HTH,
Igor
[1] 
--
http://cs.nyu.edu/~pechtcha/
 |\  _,,,---,,_ [EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
|,4-  ) )-,_. ,\ (  `'-'old name: Igor Pechtchanski
   '---''(_/--'  `-'\_) fL  a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"


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



New installation does not connect stdout to terminal

2006-01-11 Thread Russell K Montgomery
I have installed cygwin on a new Windows XP box and when I run Cygwin I 
do not get output from commands on the terminal.  The only way I can get 
the output is to redirect stdout to stderr "ls -l 1>&2"


I have used Cygwin for several years on Windows 98 and for the past year 
on another Windows XP box but have not seen any behavior like this.  I 
have searched the archives and not found any reports that are similar to 
this behavior.  Have I overlooked something?


I'm attaching the results of "cygcheck -s -v -r > chgcheck.out"

Thanks!

Russell Montgomery
in Corpus Christi, Texas where it a comfortable 54°F with breezes and 
74% humidity



Cygwin Configuration Diagnostics
Current System Time: Wed Jan 11 10:15:58 2006

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\PROGRA~1\COMMON~1\SONICS~1\
c:\Program Files\Microsoft SQL Server\80\Tools\Binn\
c:\Bin\Tools
c:\Program Files\Microsoft USB Flash Drive Manager\
c:\Program Files\Microsoft USB Flash Drive Manager\

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 500(Administrator) GID: 513(None)
0(root) 513(None)   544(Administrators)
545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 500(Administrator) GID: 513(None)
0(root) 513(None)   544(Administrators)
545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = `Administrator'
PWD = `/home/Administrator'
HOME = `/home/Administrator'
MAKE_MODE = `unix'

HOMEPATH = `\Documents and Settings\Administrator'
MANPATH = `/usr/local/man:/usr/share/man:/usr/man:'
APPDATA = `C:\Documents and Settings\Administrator\Application Data'
HOSTNAME = `RKM'
TERM = `cygwin'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 3 Stepping 4, GenuineIntel'
WINDIR = `C:\WINDOWS'
OLDPWD = `/usr/bin'
USERDOMAIN = `RKM'
OS = `Windows_NT'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
!:: = `::\'
TEMP = `/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
USERNAME = `Administrator'
PROCESSOR_LEVEL = `15'
FP_NO_HOST_CHECK = `NO'
SYSTEMDRIVE = `C:'
USERPROFILE = `C:\Documents and Settings\Administrator'
CLIENTNAME = `Console'
PS1 = `\[\e]0;[EMAIL PROTECTED] \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = `\\RKM'
PROCESSOR_ARCHITECTURE = `x86'
!C: = `C:\cygwin\bin'
SHLVL = `1'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = `C:'
PROMPT = `$P$G'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
TMP = `/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp'
SYSTEMROOT = `C:\WINDOWS'
PRINTER = `Okidata OL-810e'
CVS_RSH = `/bin/ssh'
PROCESSOR_REVISION = `0304'
INFOPATH = `/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = `C:\Program Files'
NUMBER_OF_PROCESSORS = `1'
SESSIONNAME = `Console'
COMPUTERNAME = `RKM'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd  FAT  1Mb  77% CPUN   
c:  hd  NTFS148962Mb  26% CP CS UN PA FC DRIVE_C
d:  cd N/AN/A
e:  cd N/AN/A
v:  cd N/AN/A
w:  cd N/AN/A
x:  cd N/AN/A
y:  cd N/AN/A
z:  cd N/AN/A

C:\cygwin  /  system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.  /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: c:\Bin\Tools\tar.exe
Warnin