delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/25/09:03:42

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Fri, 25 Nov 2011 16:03:07 +0200
Message-ID: <CAEYw_q=jHbGUB66fwxtnVJ1A9THAoi+FehOLXNYD3_UxRydjLw@mail.gmail.com>
Subject: tail/head not working with a pseudoterminal
From: Costin Caraivan <costincaraivan AT gmail DOT com>
To: cygwin AT sources DOT redhat DOT com
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'm trying to tail a file through SSH. I'm launching ssh through
Python, like this:
ssh -t user AT vm-admin DOT corp DOT com "tail
/cygdrive/c/ctier/ctl/var/logs/ctlcenter/STAGING/Administration/\[Staging\]\
Sleep/7.txt"

And I get this:
Pseudo-terminal will not be allocated because stdin is not a terminal.
TAIL: lseeki64() failed 22

This works from the command line :(

Also head fails with:
Pseudo-terminal will not be allocated because stdin is not a terminal.
bash: /cygdrive/c/apps/activeperl/bin/head: /usr/bin/perl: bad
interpreter: Permission denied

This also works from the command line :(

The Cygwin version is: CYGWIN_NT-6.0-WOW64 1.7.9(0.237/5/3) 2011-03-29 10:10

Any ideas?

Thanks,
_____________
Costin Caraivan

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019