This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

why does this simple expect script fail?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]