Re: STDIN and STDOUT not connected to a terminal?
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 [EMAIL PROTECTED] 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/
RE: STDIN and STDOUT not connected to a terminal?
<> -- Vicki -Original Message- From: Brown, Victoria Sent: Monday, November 10, 2003 10:45 To: '[EMAIL PROTECTED]' 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: '[EMAIL PROTECTED]' > Subject: STDIN and STDOUT not connected to a terminal? > > > > > Date: Wed, 15 Mar 2000 08:49:27 -0500 > >References: <[EMAIL PROTECTED]> > >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? > cygcheck.out Description: cygcheck.out -- 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: 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: '[EMAIL PROTECTED]' > Subject: STDIN and STDOUT not connected to a terminal? > > > > > Date: Wed, 15 Mar 2000 08:49:27 -0500 > >References: <[EMAIL PROTECTED]> > >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/