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 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: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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