X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=3.1 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4F3468FA.1030000@gmail.com>
References: <4F3468FA.1030000@gmail.com>
Date: Fri, 10 Feb 2012 18:03:28 -0500
Message-ID: <CAH2jVfbiMGnTZD60bd7jzemVhLT57HWkBUD2QBdpb435ZrEiAg@mail.gmail.com>
Subject: Re: TTY and sshpass
From: Sylvain Archenault <punx120@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q1AN3nKU028896

> On 2/9/2012 7:46 PM, Sylvain Archenault wrote:
>
> Hello,
>
> I've been using sshpass (http://sourceforge.net/projects/sshpass/) for a
> while and it stopped working after I updated cygwin to the last version
> 1.7.10-1 (was wokring with 1.7.9). I think it stops working because
> CYGWIN=TTY has changed or has been removed.
>
>
> Indeed, sshpass try to access TTY to communicate with the child ssh process,
> so I would think that the recent changes to TTY could be the problem.
>
>
> sshpass use "pselect" to read from the TTY, but the function returns an
> error the errno is set to :
> ERROR: Interrupted system call
>
>
> Does someone have an idea on the reason why ?
>
>
>Try using mintty instead.  If that doesn't help, try contacting the sshpass
>provider for help.
>
>--
>Larry

I'm using mintty for the terminal, If I used xterm with X11, it's
complaining about /usr/sbin/ssh-askpass.

I'm going to contact sshpass author.

Thank you
Sylvain

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


