Expect – A tool for automating interactive applications
41–50 of 52 posts
Re: Expect – A tool for automating interactive applications
#42Wow, a blast from the past. I still have some expect tools I wrote long ago that I use and maintain to this day. Not so much new stuff since scripting languages have gotten better at doing what expect does -- often calling their modules "expect" and using the exact same syntax. I once wrote a webserver in Expect. No, it's not a good language for writing a webserver.
Re: Expect – A tool for automating interactive applications
#43Be sure to check out "autoexpect": it starts an interactive session, and generates an expect script based on that. Then you typically need to edit it for generalization (e.g., skip dates and time strings; often skip version strings, etc.).
Edit: still trying to install autoexpect on Mac OS 10.9.2 and having no luck. Tried ActiveTcl at http://www.activestate.com/activetcl/downloads but it doesn't seem to have autoexpect. Tried brew install autoexpect, tried port install autoexpect, nothing. Sometimes unix reminds me of looking up hints in video game magazines upon finding oneself stuck, so if someone knows how to get autoexpect on Mac, please let us know because I'm throwing in the towel.
Re: Expect – A tool for automating interactive applications
#44I remember this from writing chat(8) scripts. Pretty nice little language!
Re: Expect – A tool for automating interactive applications
#45Earlier quoted context omitted.
Yes, it's a mixture of the two, which makes eminent sense if you consider the speed of computers 20 years ago. It's Tcl, by the way, not TCL.
Having spent time working on a million line Tcl codebase (for my sins) I can assure you that it is possible, but not in the least bit pleasant!
Re: Expect – A tool for automating interactive applications
#46For python, there's pexpect: http://pexpect.readthedocs.org/en/latest/
Re: Expect – A tool for automating interactive applications
#47Earlier quoted context omitted.
My understanding was that AOLserver was the NCSA (pre-Apache httpd) server, with TCL as an extension language, not that AOLserver was written in TCL. Weird.
Yes, it's a mixture of the two, which makes eminent sense if you consider the speed of computers 20 years ago. It's Tcl, by the way, not TCL.
Then there was that weird period when all the other language's gui toolkits were based on Tk.
Re: Expect – A tool for automating interactive applications
#48Has anyone used Expect for Windows? Any good experiences to share? I'm wondering if it's something I should take the time to learn and use.
Re: Expect – A tool for automating interactive applications
#49Re: Expect – A tool for automating interactive applications
#50Be sure to check out "autoexpect": it starts an interactive session, and generates an expect script based on that. Then you typically need to edit it for generalization (e.g., skip dates and time strings; often skip version strings, etc.).
How did I not know about this? Autoexpect is one of the thousand ways of interacting with computers that we USED to do back in the 80s and 90s that have since fallen out of favor. Macros, modem dialers, folder watchers, etc.. Remember trying the record button in Applecript Editor, only to find that it didn't actually work like it did in Macro Maker? The fact that autoexpect isn't installed by default on Mac OS blows…