Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <3CD9CF74.3070806@deragon.biz> Date: Wed, 08 May 2002 21:23:00 -0400 From: Hans Deragon 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. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 "\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/