This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
why does this simple expect script fail?
- To: cygwin at sourceware dot cygnus dot com
- Subject: why does this simple expect script fail?
- From: rodmant at pounder dot sol dot net
- Date: Mon, 28 Aug 2000 11:14:38 -0500
- Reply-to: rodmant at pounder dot sol dot net
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