Kevin, I don't know how to do the scripting for a bash shell for this but I'm sure it can be done.
I guess what I would be tempted to do is use kermit. It is supposed to use whatever emulation the console is using and I know that you can do scripting with it as well. If you are running RHEL3 you can just type up2date ckermit to install it if it's not installed. Then kermit to start it up. There is a lot of documentation in the man file but looking through it I see FOR and WHILE loops so I'm confident that you could just look for a string and send a response. I haven't done this in a while myself but I know I used to do this type of thing from time to time using kermit. --- Kevin Toppenberg <[EMAIL PROTECTED]> wrote: > Hello all, > > I need to do some terminal scripting. As I try to > download old progress notes from my server, it keeps > stopping and asking me a pointless question (1000's > of > times!). I need a simple terminal script that > enters > "N". > > I know that TeraTerm Pro will do scripting, but I > can't get it to properly emulate an 3151 terminal > that > our server expects. The bash shell, however, does > fine: all the functions keys work as needed etc. > > So I know that there is a scripting language built > into bash. Is there any easy to write a program > that > simply scans for a given phrase (i.e. "Is this the > same patient?") and then automatically enter "N". > And > if not found, then stay out of the way? > > Thanks > Kevin > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We > finish. > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for > FREE > LinuxWorld Reader's Choice Award Winner for best > database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Hardhats-members mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hardhats-members > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Hardhats-members mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
