| delorie.com/archives/browse.cgi | search |
| 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 |
| Message-Id: | <200008281614.LAA24789@tigris.pounder.sol.net> |
| To: | cygwin AT sourceware DOT cygnus DOT com |
| From: | rodmant AT pounder DOT sol DOT net |
| Reply-to: | rodmant AT pounder DOT sol DOT net |
| Subject: | why does this simple expect script fail? |
| Date: | Mon, 28 Aug 2000 11:14:38 -0500 |
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 AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |