delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/19/17:24:15

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <chprasad AT hotmail DOT com>
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
Message-ID: <F117bzwWJv3zOdnjQ8v00002553@hotmail.com>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019