Bug in spawning bat files with expect 5.26-cygwin-990830, CYGWIN 1.1.7 (NT 4.0)
Prasad Chodavarapu
chprasad@hotmail.com
Fri Jan 19 14:23:00 GMT 2001
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
More information about the Cygwin
mailing list