Yes, In our old Medic EMR system, there are lots of erroneous patients added to the system from ~15 years of use. When I try to copy out a patients chart to disk, it scans through the entire patient database (95,000 entries), and asks me several thousand times if patient A is the same as Patient B. I always enter "N" for this.
So I want to manually take the telnet session to the point where it copies out the chart (printing it to disk), and then let the script take over. Thanks Kevin --- "Nancy E. Anthracite" <[EMAIL PROTECTED]> wrote: > Kevin, I am not quite clear what you want. Do you > want to have it answer > that same question the same way 10,000 times, like a > loop until it stops > being presented the question? > > On Tuesday 11 January 2005 08:18 pm, Kevin > Toppenberg wrote: > > 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 > > -- > Nancy Anthracite > > > ------------------------------------------------------- > 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 > __________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com ------------------------------------------------------- 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