delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Fri, 25 Nov 2011 15:21:52 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: tail/head not working with a pseudoterminal |
Message-ID: | <20111125142152.GK23778@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <CAEYw_q=jHbGUB66fwxtnVJ1A9THAoi+FehOLXNYD3_UxRydjLw AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CAEYw_q=jHbGUB66fwxtnVJ1A9THAoi+FehOLXNYD3_UxRydjLw@mail.gmail.com> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
On Nov 25 16:03, Costin Caraivan wrote: > 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 is not Cygwin's tail. The error message looks pretty weird. Try ssh -tt. > 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 You're running the wrong head command. This is some activestate perl script, not the Cygwin head tool from coreutils. Change your $PATH to find the Cygwin apps first. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |