Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Originating-IP: [63.100.100.5] From: "Prasad Chodavarapu" To: cygwin AT cygwin DOT com Subject: Bug in spawning bat files with expect 5.26-cygwin-990830, CYGWIN 1.1.7 (NT 4.0) Date: Fri, 19 Jan 2001 17:23:17 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 19 Jan 2001 22:23:17.0699 (UTC) FILETIME=[6C062130:01C08266] bat files seem to be executed in the foreground (like exec) when spawned. e.g. create c:/temp/a.bat with just the following one line in it. sleep 600 now, run expect and spawn this bat file. $ expect expect1.1> spawn c:/temp/a.bat spawn c:/temp/a.bat the "spawn a.bat" command hangs until the sleep in a.bat finishes. i tried wrapping the bat file in a bash script, tried running the bat script with "c:/cmd.exe /c", but both of them didn't change the behaviour of expect's spawn command. expect's port on windows NT from http://bmrc.berkeley.edu/people/chaffee/expectnt.html does not have this problem. hence, this definitely seems to be a bug in the cygwin port of expect. i would appreciate if u can point me to any workarounds. thanks prasad _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple