This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Bug in spawning bat files with expect 5.26-cygwin-990830, CYGWIN 1.1.7 (NT 4.0)
- 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)
- From: "Prasad Chodavarapu" <chprasad at hotmail dot com>
- Date: Fri, 19 Jan 2001 17:23:17 -0500
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