X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <21442493.post@talk.nabble.com> References: <21383170 DOT post AT talk DOT nabble DOT com> <21427082 DOT post AT talk DOT nabble DOT com> <21442493 DOT post AT talk DOT nabble DOT com> Date: Fri, 16 Jan 2009 01:33:51 +0300 Message-ID: Subject: Re: automate SSH-HOST-CONFIG From: Dmitry Semyonov To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 Tue, Jan 13, 2009 at 22:16, blazt wrote: > I created the script based on yours but it never sends the expect back to > the program. > > #!/bin/bash This line was not included into my sample. I doubt it can work this way. > #!./expect -f Why the dot-slash? Do you have expect executable in your local directory? Have you compiled it by yourself? 'expect' package could be installed through Cygwin setup. You should use this method instead. [...] > I took out the exec so I could see the script run and it simply hangs at the > first query where it asks to overwrite existing files. Is there anything > else I need to do to get this to work with cygwin? If you don't have enough experience don't make unnecessary changes or add your bits before ensuring that the provided sample works. Read the man. Experiment with simple things. -- ...Bye..Dmitry. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/