public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: STDIN and STDOUT not connected to a terminal?
@ 2003-11-10 18:50 Brown, Victoria
  0 siblings, 0 replies; 5+ messages in thread
From: Brown, Victoria @ 2003-11-10 18:50 UTC (permalink / raw)
  To: Brown, Victoria, cygwin

[-- Attachment #1: Type: text/plain, Size: 2867 bytes --]

 <<cygcheck.out>> 

-- Vicki

 -----Original Message-----
From: 	Brown, Victoria  
Sent:	Monday, November 10, 2003 10:45
To:	'cygwin@cygwin.com'
Subject:	RE: STDIN and STDOUT not connected to a terminal?

Sigh.

I read the FAQ; I found nothing.
I looked in the archives (obvious from my posting).
"Smart questions" (ESR notwithstanding) are in the eye of the beholder.

This is Perl 5.8.0
Windows 2000 Pro
theoretically latest cygwin (I installed it recently)
BASH_VERSION='2.05b.0(1)-release' 
CYGWIN='ntsec tty'

If there is something more you need to know, then please  _tell me what it is_. 
Don't be cryptic.

I've been using Unix since 1983; I've been using cygwin since October 15, 2003.

-- Vicki

 -----Original Message-----
From: 	listmem,ber
Sent:	Monday, November 10, 2003 10:35
To:	Brown, Victoria
Subject:	RE: STDIN and STDOUT not connected to a terminal?

your example code results in 

$ perl perltst
STDIN OK
STDOUT OK

on my windows XP Pro system

You might get more of a response if you follow the instructions at

> Problem reports:       http://cygwin.com/problems.html


>  -----Original Message-----
> From: 	Brown, Victoria  
> Sent:	Tuesday, November 04, 2003 12:19
> To:	'cygwin@cygwin.com'
> Subject:	STDIN and STDOUT not connected to a terminal?
> 
> 
> 
> > Date: Wed, 15 Mar 2000 08:49:27 -0500
> >References: <492568A3.0020F860.00@pwj-gw-n001.pwj.co.jp>
> >Using the current development snapshot I compiled up Perl 5.6.0 RC1 
> >without any problems. However, I'm having problems with a 
> very simple 
> >line of Perl:
> >
> >perl -le 'print q/foo/ if -t STDIN'
> 
> 
> I am having a similar problem; here's the Perl script
> 
> #!/usr/bin/perl -w
> 
> if (-t STDIN) {
>    print "STDIN OK\n";
> } else {
>     print "no STDIN?\n";
> }
> 
> if (-t STDOUT) {
>    print "STDOUT OK\n";
> } else {
>     print "no STDOUT?\n";
> }
> 
> 
> It results in
> no STDIN?
> no STDOUT?
> 
> 
> 
> Because STDIN and STDOUT do not appear to be attached to a 
> terminal, I cannot run Active State's ppm program. 
> ppm3-bin.bat checks if (-t STDIN and -t STDOUT)  and dies if 
> the result is false.
> 
> This is Perl 5.8.0, newly installed.
> The Problem occurs in both rxvt and the standard console 
> shell. BASH_VERSION='2.05b.0(1)-release' CYGWIN='ntsec tty'
> 
> Theoretically this is the most recent cygwin version; I did a 
> "reinstall". Not sure what to look at to prove the version 
> #... if there is an environment variable I don't see it.
> 
> The folks at ActiveState cannot reproduce this problem; they 
> _can_ run ppm with the latest version of cygwin bash.
> 
> Pointers appreciated. What do I need to change, install, 
> uninstall... to cause Perl to believe that STDIN and STDOUT 
> are connected to a terminal?
> 



[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 21242 bytes --]


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Nov 10 10:49:06 2003

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:	~\bin
	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	~\bin
	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	c:\Perl\bin\
	c:\ORAHOME1\BIN
	c:\PROGRAM FILES\ORACLE\JRE\1.1.7\BIN
	c:\BIN
	c:\PERL\BIN
	c:\WINNT\SYSTEM32
	c:\WINNT
	c:\WINNT\SYSTEM32\WBEM
	c:\PROGRAM FILES\SYMANTEC\PCANYWHERE\
	c:\PROGRAM FILES\RESOURCE KIT\
	c:\PROGRAM FILES\RATIONAL\COMMON
	c:\PROGRAM FILES\RATIONAL\CLEARQUEST
	c:\DMI\WIN32\BIN
	c:\Program Files\Rational\ClearCase\bin
	C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 400(vbrown) GID: 547(Power Users)
544(Administrators)  547(Power Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 400(vbrown) GID: 547(Power Users)
544(Administrators)  547(Power Users)     
545(Users)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

CYGWIN = `ntsec tty'
HOME = `C:\cygwin\home\vbrown'
MAKE_MODE = `unix'
PWD = `/home/vbrown/Project/Parsnip'
USER = `vbrown'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\vbrown\Application Data'
COLORFGBG = `0;default;15'
COLORTERM = `rxvt-xpm'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `D-SJC-VBROWN'
COMSPEC = `C:\WINNT\system32\cmd.exe'
CVSROOT = ` /cygdrive/c/cygwin/home/vbrown/My_Documents/Bagels/CVS'
CVS_RSH = `/bin/ssh'
DISPLAY = `:0'
HISTCONTROL = `ignoreboth'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\vbrown'
HOSTNAME = `D-SJC-VBROWN'
INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
LOGONSERVER = `\\SJC-ADC-01'
MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man:/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/vbrown/Project/ComplianceTest'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 7, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0207'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007 \033[0;34m\][\A \d] \[\033[0;31m\w\033[0m\]\n vlb \! $ '
RATL_RTHOME = `C:\Program Files\Rational\Rational Test'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `c:\DOCUME~1\vbrown\LOCALS~1\Temp'
TERM = `xterm'
TMP = `c:\DOCUME~1\vbrown\LOCALS~1\Temp'
USERDNSDOMAIN = `corp.ebay.com'
USERDOMAIN = `CORP'
USERNAME = `vbrown'
USERPROFILE = `C:\Documents and Settings\vbrown'
WIN32DMIPATH = `C:\DMI\WIN32'
WINDIR = `C:\WINNT'
WINDOWID = `168041928'
_ = `/usr/bin/cygcheck'

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 = 0x00000020
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x00000008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x00000008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x00000008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  NTFS   39197Mb  17% CP CS UN PA FC     
d:  cd           N/A    N/A                    
g:  net NTFS   2236467Mb  95% CP CS UN PA        Group
m:  net MVFS    1000Mb  50% CP CS              CCase
t:  net NTFS   10240Mb  34% CP CS UN PA        temp

C:\cygwin                          /                         system  textmode
C:\cygwin/bin                      /usr/bin                  system  textmode
C:\cygwin/lib                      /usr/lib                  system  textmode
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
.                                  /cygdrive                 system  textmode,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
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
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

   61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2003/8/8 23:35
    7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 0:57
  842k 2003/09/30 C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=2003/9/30 9:49
  645k 2003/04/11 C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto.dll" v0.0 ts=2003/4/11 3:37
  551k 2003/04/02 C:\cygwin\bin\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-2.dll" v0.0 ts=2003/4/2 13:09
   22k 2003/10/17 C:\cygwin\bin\cygcygipc-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcygipc-2.dll" v0.0 ts=2003/10/16 22:24
  132k 2003/07/12 C:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-0.dll" v0.0 ts=2003/7/12 4:33
  660k 2003/10/18 C:\cygwin\bin\cygfltknox-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygfltknox-0.dll" v0.0 ts=2003/10/18 12:05
   62k 2003/10/18 C:\cygwin\bin\cygfltknox_forms-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygfltknox_forms-0.dll" v0.0 ts=2003/10/18 12:05
   79k 2003/10/18 C:\cygwin\bin\cygfltknox_gl-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygfltknox_gl-0.dll" v0.0 ts=2003/10/18 12:05
  107k 2003/10/18 C:\cygwin\bin\cygfltknox_images-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygfltknox_images-0.dll" v0.0 ts=2003/10/18 12:05
  131k 2003/10/28 C:\cygwin\bin\cygfontconfig-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygfontconfig-1.dll" v0.0 ts=2003/10/28 14:44
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/24 22:28
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/8 22:03
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
                  "cygform7.dll" v0.0 ts=2003/8/9 2:25
  361k 2003/10/25 C:\cygwin\bin\cygfreetype-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygfreetype-6.dll" v0.0 ts=2003/10/21 21:18
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-3.dll" v0.0 ts=2003/7/20 0:58
   30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2003/8/10 19:12
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/19 19:05
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 1:00
   15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2003/8/10 19:13
   69k 2003/08/10 C:\cygwin\bin\cyggettextlib-0-12-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextlib-0-12-1.dll" v0.0 ts=2003/8/10 15:10
   12k 2003/08/10 C:\cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextpo-0.dll" v0.0 ts=2003/8/10 15:11
  134k 2003/08/10 C:\cygwin\bin\cyggettextsrc-0-12-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextsrc-0-12-1.dll" v0.0 ts=2003/8/10 15:10
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/6 20:34
   29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2003/8/10 16:16
  306k 2002/04/27 C:\cygwin\bin\cyghttpd.dll - os=4.0 img=1.0 sys=4.0
                  "cyghttpd.dll" v0.0 ts=2002/4/27 6:23
  958k 2003/08/10 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2003/8/10 13:57
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 1:28
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 14:50
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 10:09
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/24 22:27
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/8 22:03
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu7.dll" v0.0 ts=2003/8/9 2:25
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/24 22:29
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/8 22:03
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/24 22:17
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/8 22:03
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses7.dll" v0.0 ts=2003/8/9 2:24
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/24 22:27
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/8 22:03
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel7.dll" v0.0 ts=2003/8/9 2:24
   67k 2003/09/10 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2003/9/10 7:25
   63k 2003/04/11 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2003/4/11 1:31
   15k 2003/09/10 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2003/9/10 7:25
   61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2003/4/11 1:31
  173k 2003/08/10 C:\cygwin\bin\cygpng12.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng12.dll" v0.0 ts=2003/8/10 15:35
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/8 22:45
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/6 20:34
  148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2003/8/10 16:16
  171k 2003/09/30 C:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.7.dll" v0.0 ts=2003/9/30 9:49
  165k 2003/04/11 C:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl.dll" v0.0 ts=2003/4/11 3:37
   60k 2003/08/09 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2003/8/8 23:28
  949k 2003/09/20 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2003/9/20 13:31
    Cygwin DLL version info:
        DLL version: 1.5.5
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 94
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Sat Sep 20 16:31:15 EDT 2003
        CVS tag: cr-0x9b
        Shared id: cygwin1S3

  247k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygdps-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdps-1.dll" v0.0 ts=2003/10/28 8:36
  124k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygdpstk-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdpstk-1.dll" v0.0 ts=2003/10/28 8:36
  282k 2003/10/28 C:\cygwin\usr\X11R6\bin\cygfreetype-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygfreetype-9.dll" v0.0 ts=2003/10/17 23:44
  392k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygGL-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygGL-1.dll" v0.0 ts=2003/10/28 8:33
  446k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygGLU-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygGLU-1.dll" v0.0 ts=2003/10/28 8:35
   75k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygICE-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygICE-6.dll" v0.0 ts=2003/10/28 8:26
    9k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygoldX-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygoldX-6.dll" v0.0 ts=2003/10/28 8:25
 1299k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygOSMesa-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygOSMesa-4.dll" v0.0 ts=2003/10/28 8:34
   20k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygpsres-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygpsres-1.dll" v0.0 ts=2003/10/28 8:36
   30k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygSM-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygSM-6.dll" v0.0 ts=2003/10/28 8:26
  883k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygX11-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygX11-6.dll" v0.0 ts=2003/10/28 8:25
  363k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXaw-7.dll - os=4.0 img=1.0 sys=4.0
                  "cygXaw-7.dll" v0.0 ts=2003/10/28 8:28
   36k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXcursor-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXcursor-1.dll" v0.0 ts=2003/10/28 8:37
   51k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXext-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXext-6.dll" v0.0 ts=2003/10/28 8:26
   57k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXft-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXft-1.dll" v0.0 ts=2003/10/28 8:36
   76k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXft-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygXft-2.dll" v0.0 ts=2003/10/28 8:36
   28k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXi-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXi-6.dll" v0.0 ts=2003/10/28 8:29
   77k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXmu-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXmu-6.dll" v0.0 ts=2003/10/28 8:27
   11k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXmuu-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXmuu-1.dll" v0.0 ts=2003/10/28 8:27
   27k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXp-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXp-6.dll" v0.0 ts=2003/10/28 8:30
   52k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXpm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-4.dll" v0.0 ts=2003/10/28 8:27
   14k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXrandr-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygXrandr-2.dll" v0.0 ts=2003/10/28 8:37
   27k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXrender-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXrender-1.dll" v0.0 ts=2003/10/28 8:36
  291k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXt-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXt-6.dll" v0.0 ts=2003/10/28 8:27
   28k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXTrap-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXTrap-6.dll" v0.0 ts=2003/10/28 8:37
   18k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXtst-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXtst-6.dll" v0.0 ts=2003/10/28 8:29
   16k 2003/10/30 C:\cygwin\usr\X11R6\bin\cygXv-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygXv-1.dll" v0.0 ts=2003/10/28 8:30

Cygwin Package Information
Last downloaded files to: C:\Documents and Settings\vbrown\My Documents\cygwin-install\ftp%3a%2f%2fftp.nas.nasa.gov%2fmirrors%2fcygwin.com%2fpub%2fcygwin
Last downloaded files from: ftp://ftp.nas.nasa.gov/mirrors/cygwin.com/pub/cygwin

Package                 Version            
_update-info-dir        00221-1            
ash                     20031007-1         
base-files              2.6-1              
base-passwd             1.1-1              
bash                    2.05b-16           
bzip2                   1.0.2-5            
clisp                   2.31-2             
cygipc                  2.02-1             
cygrunsrv               0.96-2             
cygutils                1.2.2-1            
cygwin                  1.5.5-1            
cygwin-doc              1.3-6              
diffutils               2.8.4-1            
ed                      0.2-1              
editrights              1.01-1             
expat                   1.95.6-2           
fileutils               4.1-2              
findutils               4.1.7-4            
fontconfig              2.2.0-1            
freetype2               2.1.5-1            
gawk                    3.1.3-3            
gdbm                    1.8.3-7            
gettext                 0.12.1-3           
ghostscript             7.05-2             
ghostscript-base        7.05-2             
ghostscript-x11         7.05-2             
grep                    2.5-1              
groff                   1.18.1-2           
gzip                    1.3.5-1            
less                    381-1              
libbz2_1                1.0.2-5            
libfontconfig1          2.2.0-1            
libfreetype26           2.1.5-1            
libgdbm                 1.8.0-5            
libgdbm-devel           1.8.3-7            
libgdbm3                1.8.3-3            
libgdbm4                1.8.3-7            
libgettextpo0           0.12.1-3           
libiconv2               1.9.1-3            
libintl                 0.10.38-3          
libintl1                0.10.40-1          
libintl2                0.12.1-3           
libncurses5             5.2-1              
libncurses6             5.2-8              
libncurses7             5.3-4              
libpcre                 4.1-1              
libpcre0                4.4-2              
libpng12                1.2.5-4            
libpopt0                1.6.4-4            
libreadline4            4.1-2              
libreadline5            4.3-5              
login                   1.9-7              
man                     1.5j-2             
mktemp                  1.5-3              
nano                    1.2.2-1            
ncurses                 5.3-4              
openssh                 3.7.1p2-1          
openssl                 0.9.7c-1           
openssl096              0.9.6j-1           
pcre                    4.4-2              
pcre-doc                4.4-2              
readline                4.3-5              
rxvt                    2.7.10-3           
sed                     4.0.7-3            
sh-utils                2.0.15-4           
sharutils               4.2.1-3            
tar                     1.13.25-3          
tcsh                    6.12.00-7          
termcap                 20021106-2         
terminfo                5.3_20030726-1     
texinfo                 4.2-4              
textutils               2.0.21-1           
unzip                   5.50-5             
vim                     6.2-3              
which                   1.5-2              
XFree86-base            4.3.0-1            
XFree86-bin             4.3.0-7            
XFree86-etc             4.3.0-5            
XFree86-fenc            4.2.0-3            
XFree86-fnts            4.2.0-3            
XFree86-lib             4.3.0-1            
XFree86-lib-compat      4.3.0-2            
XFree86-startup-scripts 4.2.0-5            
XFree86-xserv           4.3.0-21           
zip                     2.3-5              
zlib                    1.1.4-4            
Use -h to see help about each section

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: STDIN and STDOUT not connected to a terminal?
  2003-11-10 18:44 Brown, Victoria
@ 2003-11-10 19:24 ` Christopher Faylor
  0 siblings, 0 replies; 5+ messages in thread
From: Christopher Faylor @ 2003-11-10 19:24 UTC (permalink / raw)
  To: cygwin

On Mon, Nov 10, 2003 at 10:44:51AM -0800, Brown, Victoria wrote:
>Sigh.
>
>I read the FAQ; I found nothing.
>I looked in the archives (obvious from my posting).
>"Smart questions" (ESR notwithstanding) are in the eye of the beholder.

http://www.catb.org/~esr/faqs/smart-questions.html#not_losing

>The folks at ActiveState cannot reproduce this problem; they _can_ run
>ppm with the latest version of cygwin bash.

>This is Perl 5.8.0
>Windows 2000 Pro
>theoretically latest cygwin (I installed it recently)
>BASH_VERSION='2.05b.0(1)-release' 
>CYGWIN='ntsec tty'
               ^^^

ActiveState perl is not a cygwin application.  It doesn't understand
cygwin ttys.  If you remove the 'tty' from the settings then -t will
probably work in a standard cygwin console.  It will not work right with
applications like 'rxvt' or 'ssh' which use cygwin ptys.  There is
no workaround for this other than using cygwin's perl.

>If there is something more you need to know, then please _tell me what
>it is_.  Don't be cryptic.

http://www.catb.org/~esr/faqs/smart-questions.html#id2854531

In the interests of helping you send a smarter question next time, here
is how you could have sent your message so that it would not require
several readings to figure out what was wrong:

*I am using ActiveState perl.  I've noticed that the following one line
*application does not display 'is a tty':
*
*perl -le 'print "is a tty\n" if -t STDIN'
*
*My cygcheck output is attached as per http://cygwin.com/problems.html ."
--
Please use the resources at cygwin.com rather than sending personal email.
Special for spam email harvesters: send email to aaaspam@sourceware.org
and be permanently blocked from mailing lists at sources.redhat.com

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: STDIN and STDOUT not connected to a terminal?
@ 2003-11-10 18:44 Brown, Victoria
  2003-11-10 19:24 ` Christopher Faylor
  0 siblings, 1 reply; 5+ messages in thread
From: Brown, Victoria @ 2003-11-10 18:44 UTC (permalink / raw)
  To: cygwin

Sigh.

I read the FAQ; I found nothing.
I looked in the archives (obvious from my posting).
"Smart questions" (ESR notwithstanding) are in the eye of the beholder.

This is Perl 5.8.0
Windows 2000 Pro
theoretically latest cygwin (I installed it recently)
BASH_VERSION='2.05b.0(1)-release' 
CYGWIN='ntsec tty'

If there is something more you need to know, then please  _tell me what it is_. 
Don't be cryptic.

I've been using Unix since 1983; I've been using cygwin since October 15, 2003.

-- Vicki

 -----Original Message-----
From: 	listmem,ber
Sent:	Monday, November 10, 2003 10:35
To:	Brown, Victoria
Subject:	RE: STDIN and STDOUT not connected to a terminal?

your example code results in 

$ perl perltst
STDIN OK
STDOUT OK

on my windows XP Pro system

You might get more of a response if you follow the instructions at

> Problem reports:       http://cygwin.com/problems.html


>  -----Original Message-----
> From: 	Brown, Victoria  
> Sent:	Tuesday, November 04, 2003 12:19
> To:	'cygwin@cygwin.com'
> Subject:	STDIN and STDOUT not connected to a terminal?
> 
> 
> 
> > Date: Wed, 15 Mar 2000 08:49:27 -0500
> >References: <492568A3.0020F860.00@pwj-gw-n001.pwj.co.jp>
> >Using the current development snapshot I compiled up Perl 5.6.0 RC1 
> >without any problems. However, I'm having problems with a 
> very simple 
> >line of Perl:
> >
> >perl -le 'print q/foo/ if -t STDIN'
> 
> 
> I am having a similar problem; here's the Perl script
> 
> #!/usr/bin/perl -w
> 
> if (-t STDIN) {
>    print "STDIN OK\n";
> } else {
>     print "no STDIN?\n";
> }
> 
> if (-t STDOUT) {
>    print "STDOUT OK\n";
> } else {
>     print "no STDOUT?\n";
> }
> 
> 
> It results in
> no STDIN?
> no STDOUT?
> 
> 
> 
> Because STDIN and STDOUT do not appear to be attached to a 
> terminal, I cannot run Active State's ppm program. 
> ppm3-bin.bat checks if (-t STDIN and -t STDOUT)  and dies if 
> the result is false.
> 
> This is Perl 5.8.0, newly installed.
> The Problem occurs in both rxvt and the standard console 
> shell. BASH_VERSION='2.05b.0(1)-release' CYGWIN='ntsec tty'
> 
> Theoretically this is the most recent cygwin version; I did a 
> "reinstall". Not sure what to look at to prove the version 
> #... if there is an environment variable I don't see it.
> 
> The folks at ActiveState cannot reproduce this problem; they 
> _can_ run ppm with the latest version of cygwin bash.
> 
> Pointers appreciated. What do I need to change, install, 
> uninstall... to cause Perl to believe that STDIN and STDOUT 
> are connected to a terminal?
> 



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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* STDIN and STDOUT not connected to a terminal?
@ 2003-11-10 18:10 Brown, Victoria
  0 siblings, 0 replies; 5+ messages in thread
From: Brown, Victoria @ 2003-11-10 18:10 UTC (permalink / raw)
  To: cygwin

Anyone??

-- Vicki

 -----Original Message-----
From: 	Brown, Victoria  
Sent:	Tuesday, November 04, 2003 12:19
To:	'cygwin@cygwin.com'
Subject:	STDIN and STDOUT not connected to a terminal?



> Date: Wed, 15 Mar 2000 08:49:27 -0500
>References: <492568A3.0020F860.00@pwj-gw-n001.pwj.co.jp>
>Using the current development snapshot I compiled up Perl 5.6.0 RC1 without any problems.
>However, I'm having problems with a very simple line of Perl:
>
>perl -le 'print q/foo/ if -t STDIN'


I am having a similar problem; here's the Perl script

#!/usr/bin/perl -w

if (-t STDIN) {
   print "STDIN OK\n";
} else {
    print "no STDIN?\n";
}

if (-t STDOUT) {
   print "STDOUT OK\n";
} else {
    print "no STDOUT?\n";
}


It results in
no STDIN?
no STDOUT?



Because STDIN and STDOUT do not appear to be attached to a terminal, I cannot run Active State's ppm program. ppm3-bin.bat checks if (-t STDIN and -t STDOUT)  and dies if the result is false.

This is Perl 5.8.0, newly installed.
The Problem occurs in both rxvt and the standard console shell.
BASH_VERSION='2.05b.0(1)-release'
CYGWIN='ntsec tty'

Theoretically this is the most recent cygwin version; I did a "reinstall". Not sure what to look at to prove the version #... if there is an environment variable I don't see it.

The folks at ActiveState cannot reproduce this problem; they _can_ run ppm with the latest version of cygwin bash.

Pointers appreciated. What do I need to change, install, uninstall... to cause Perl to believe that STDIN and STDOUT are connected to a terminal?


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* STDIN and STDOUT not connected to a terminal?
@ 2003-11-04 20:18 Brown, Victoria
  0 siblings, 0 replies; 5+ messages in thread
From: Brown, Victoria @ 2003-11-04 20:18 UTC (permalink / raw)
  To: cygwin



> Date: Wed, 15 Mar 2000 08:49:27 -0500
>References: <492568A3.0020F860.00@pwj-gw-n001.pwj.co.jp>
>Using the current development snapshot I compiled up Perl 5.6.0 RC1 without any problems.
>However, I'm having problems with a very simple line of Perl:
>
>perl -le 'print q/foo/ if -t STDIN'


I am having a similar problem; here's the Perl script

#!/usr/bin/perl -w

if (-t STDIN) {
   print "STDIN OK\n";
} else {
    print "no STDIN?\n";
}

if (-t STDOUT) {
   print "STDOUT OK\n";
} else {
    print "no STDOUT?\n";
}


It results in
no STDIN?
no STDOUT?



Because STDIN and STDOUT do not appear to be attached to a terminal, I cannot run Active State's ppm program. ppm3-bin.bat checks if (-t STDIN and -t STDOUT)  and dies if the result is false.

This is Perl 5.8.0, newly installed.
The Problem occurs in both rxvt and the standard console shell.
BASH_VERSION='2.05b.0(1)-release'
CYGWIN='ntsec tty'

Theoretically this is the most recent cygwin version; I did a "reinstall". Not sure what to look at to prove the version #... if there is an environment variable I don't see it.

The folks at ActiveState cannot reproduce this problem; they _can_ run ppm with the latest version of cygwin bash.

Pointers appreciated. What do I need to change, install, uninstall... to cause Perl to believe that STDIN and STDOUT are connected to a terminal?

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-11-10 19:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-10 18:50 STDIN and STDOUT not connected to a terminal? Brown, Victoria
  -- strict thread matches above, loose matches on Subject: below --
2003-11-10 18:44 Brown, Victoria
2003-11-10 19:24 ` Christopher Faylor
2003-11-10 18:10 Brown, Victoria
2003-11-04 20:18 Brown, Victoria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).