why does this simple expect script fail?
rodmant@pounder.sol.net
rodmant@pounder.sol.net
Tue Aug 29 03:25:00 GMT 2000
The script is lifted from "Exploring Expect":
--v-v------------------C-U-T---H-E-R-E-------------------------v-v--
#!/bin/expect
# from "Exploring Expect" Oreilly book
spawn /bin/bash
# on NT never get bash shell prompt
catch {exec rm typescript }
interact {
-echo "~s" {
send_user "topped recording\n"
log_file
}
-echo "~r" {
send_user "ecording\n"
log_file typescript
}
}
--^-^------------------C-U-T---H-E-R-E-------------------------^-^--
uname -a sez:
CYGWIN_NT-4.0 CMKE756 21.0 (0.14/2/2) 1999-9-13 20:44:35 i686 unknown
thanks,
Tom ROdman
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list