delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Message-ID: | <3CD9CF74.3070806@deragon.biz> |
Date: | Wed, 08 May 2002 21:23:00 -0400 |
From: | Hans Deragon <hans AT deragon DOT biz> |
Organization: | Deragon Informatique inc. |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 |
X-Accept-Language: | fr-CA,fr,en |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Expect and ssh, not working. |
Greetings. I have the following script to logon to one of my machine: #!/usr/bin/expect set timeout 30 spawn ssh -1 -l myuserid myhost 2>&1 expect "assword:" # The sleep command is necessary to hide the password, else sometimes # it shows up on the screen, expect being to fast for ssh. [:(] sleep 0.1 send "<mypassword>\r" interact On a linux machine, this script works fine. On a WinXP under Cygwin, it does not. It hangs. Actually, you can type something in the rxvt, but nothing happens; the input is ignored (I see what I type, but the characters are ignored). Even CTRL-C does not work. I must execute a kill command in another window to kill the script. Its seams that expect cannot "control" ssh. If one replaces ssh with telnet, everything works fine. Anybody have a clue what to do to get this working? Sincerely, Hans Deragon -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |