Hey all, I need a straight-forward script for expect. I have been trying to read the documentation for expect, but am a bit overwhelmed.
I need the script to look for a given phrase, and give an answer for me. Here is my attempt so far: #!/usr/bin/expect spawn telnet aix expect "Is this the same patient?" {send N ; exp_continue} exit I have gotten a slightly different form of the above to automatically log in for me. My problem is that I need to go through a complex set of menus to get to the point where it starts asking me the same question 10,000 times. Looking in the documentation, I see a command to turn control over to the user (i.e. me) for awhile, then return control to the expect script. I am still not grasping how the program cycles, etc. Has anyone played with this enough to help me out? Thanks Kevin __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members