RE: [Hardhats-members] Linux console as terminal emulator, with scripting?
My AIX version 4 doesn't seem to have the expect command. Oh well.. Here is what I see when I try: * * Welcome to AIX Version 4! * * Misys Healthcare Systems * * * *** Last unsuccessful login: Thu Oct 14 11:59:03 EDT 2004 on /dev/tty3 Last login: Thu Oct 28 06:48:48 EDT 2004 on /dev/pts/0 from 192.168.3.104 # expect -h ksh: expect: not found. # man expect There is not an entry for expect. # Thanks Kevin --- "K.S. Bhaskar" <[EMAIL PROTECTED]> wrote: > I think Todd is on the right track. > > -- Bhaskar > > On Wed, 2004-10-27 at 11:21, Smith, Todd wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > - -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > Kevin, > > > > The utility that you are looking for is called > expect and you should find it > > on the AIX box or the Linux box. It allows you to > handle some scripting for > > FTP and telnet pretty well. > > > > Todd Smith <[EMAIL PROTECTED]> > > My PGP public key can be obtained at > http://pgp.mit.edu > > *** > This electronic mail transmission contains > confidential and/or privileged information intended > only for the person(s) named. > Any use, distribution, copying or disclosure by > another person is strictly prohibited. > *** > > NOTE: Ce courriel est destine exclusivement au(x) > destinataire(s) mentionne(s) ci-dessus et peut > contenir de l'information privilegiee, > confidentielle et/ou dispensee de divulgation aux > termes des lois applicables. Si vous avez recu ce > message par erreur, ou s'il ne vous est pas destine, > veuillez le mentionner immediatement a l'expediteur > et effacer ce courriel. > > > > > > --- > 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_idU88&alloc_id065&op=click > ___ > Hardhats-members mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hardhats-members > __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo --- 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
RE: [Hardhats-members] Linux console as terminal emulator, with scripting?
At 07:43 10/27/2004, K.S. Bhaskar wrote: >I think Todd is on the right track. I agree, Expect (written by Don Libes at NIST and in the public domain) was designed explicitly to handle such tasks. You might want to use autoexpect to create a script for you based on your interaction with the application, then edit the script. You can read more at the official Expect site: http://expect.nist.gov and/or Don Libes' excellent book, "Exploring Expect" from O'Reilly & Associates: http://www.bookpool.com/.x/75q7tpjtw0/ss?qs=expect&x=0&y=0 HTH, Ron >-- Bhaskar > >On Wed, 2004-10-27 at 11:21, Smith, Todd wrote: >> Kevin, >> >> The utility that you are looking for is called expect and you should find it >> on the AIX box or the Linux box. It allows you to handle some scripting for >> FTP and telnet pretty well. >> >> Todd Smith <[EMAIL PROTECTED]> >> My PGP public key can be obtained at http://pgp.mit.edu --- 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
RE: [Hardhats-members] Linux console as terminal emulator, with scripting?
I think Todd is on the right track. -- Bhaskar On Wed, 2004-10-27 at 11:21, Smith, Todd wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > - -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Kevin, > > The utility that you are looking for is called expect and you should find it > on the AIX box or the Linux box. It allows you to handle some scripting for > FTP and telnet pretty well. > > Todd Smith <[EMAIL PROTECTED]> > My PGP public key can be obtained at http://pgp.mit.edu *** This electronic mail transmission contains confidential and/or privileged information intended only for the person(s) named. Any use, distribution, copying or disclosure by another person is strictly prohibited. *** NOTE: Ce courriel est destine exclusivement au(x) destinataire(s) mentionne(s) ci-dessus et peut contenir de l'information privilegiee, confidentielle et/ou dispensee de divulgation aux termes des lois applicables. Si vous avez recu ce message par erreur, ou s'il ne vous est pas destine, veuillez le mentionner immediatement a l'expediteur et effacer ce courriel. --- 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_idU88&alloc_id065&op=click ___ Hardhats-members mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Linux console as terminal emulator, with scripting?
> ----- Original Message - > From: "Kevin Toppenberg" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 26, 2004 4:07 PM > Subject: Re: [Hardhats-members] Linux console as > terminal emulator, with > scripting? > > > > Maury, > > > > I spent a full day a month or so ago trying to get > > TeraTerm to work with our server, and finally gave > up. > > In order to navigate on the server, I have to use > > F1-F12 keys. I spent a long time trying to figure > out > > the escape sequences that should be sent when F1 > etc > > is pressed, but couldn't ever get it to work. I > know > > that key mapping would allow for any arbitrary > > sequence to be sent when a key is pressed. But > again, > > I couldn't figure out what they should be. > > > > Thanks > > Kevin > > > > > > --- Maury Pepper <[EMAIL PROTECTED]> wrote: > > > > > Kevin, > > > > > > What problem are you having with TeraTerm? > > > For scripting, terminal type usually isn't an > issue. > > > The keyboard config file allows for redefining > most > > > of the keys. (I can help > > > with this.) > > > It also has TEK4010 emulation which perhaps your > > > system can handle. > > > > > > > > > > > > - Original Message - > > > From: "Kevin Toppenberg" <[EMAIL PROTECTED]> > > > To: "Hardhats Sourceforge" > > > <[EMAIL PROTECTED]> > > > Sent: Tuesday, October 26, 2004 1:22 PM > > > Subject: [Hardhats-members] Linux console as > > > terminal emulator, with > > > scripting? > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > --- > > > 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://li
Re: [Hardhats-members] Linux console as terminal emulator, with scripting?
If escape sequences are necessary to navigate, and if you don't know the escape sequences, then how will you write a script which contains all of the necessary characters? The following termcap segment came from www.blueemulations.com/e3151doc.shtml :f1=\Ea\r:f2=\Eb\r:f3=\Ec\r:f4=\Ed\r:f5=\Ee\r: :f6=\Ef\r:f7=\Eg\r:f8=\Eh\r:f9=\Ei\r:f10=\Ej\r: :f11=\Ek\r:f12=\El\r: :F1=\E!a\r:F2=\E!b\r:F3=\E!c\r:F4=\E!d\r:F5=\E!e\r: :F6=\E!f\r:F7=\E!g\r:F8=\Ew\r:F9=\E!i\r:F10=\E!j\r: :F11=\E!k\r:F12=\E!l\r: :^f1=\E"a\r:^f2=\E"b\r:^f3=\E"c\r:^f4=\E"d\r:^f5=\E"e\r: :^f6=\E"f\r:^f7=\E"g\r:^f8=\E"h\r:^f9=\Ei\r:^f10=\Ej\r: :^f11=\Ek\r:^f12=\El\r: - Original Message - From: "Kevin Toppenberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 26, 2004 4:07 PM Subject: Re: [Hardhats-members] Linux console as terminal emulator, with scripting? > Maury, > > I spent a full day a month or so ago trying to get > TeraTerm to work with our server, and finally gave up. > In order to navigate on the server, I have to use > F1-F12 keys. I spent a long time trying to figure out > the escape sequences that should be sent when F1 etc > is pressed, but couldn't ever get it to work. I know > that key mapping would allow for any arbitrary > sequence to be sent when a key is pressed. But again, > I couldn't figure out what they should be. > > Thanks > Kevin > > > --- Maury Pepper <[EMAIL PROTECTED]> wrote: > > > Kevin, > > > > What problem are you having with TeraTerm? > > For scripting, terminal type usually isn't an issue. > > The keyboard config file allows for redefining most > > of the keys. (I can help > > with this.) > > It also has TEK4010 emulation which perhaps your > > system can handle. > > > > > > > > - Original Message - > > From: "Kevin Toppenberg" <[EMAIL PROTECTED]> > > To: "Hardhats Sourceforge" > > <[EMAIL PROTECTED]> > > Sent: Tuesday, October 26, 2004 1:22 PM > > Subject: [Hardhats-members] Linux console as > > terminal emulator, with > > scripting? > > > > > > > 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 > > > > > > > > > > > > --- > > 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/lis
RE: [Hardhats-members] Linux console as terminal emulator, with scripting?
Kevin, I am thinking out loud also, actually I am trying to remember back to the AIX days. There are three types of output from a UNIX system and I am sorry that I can't remember which is which, but the following is as close as I can get. 0> Standard output 1> Errors 2> something else. I think that your command line should look something like this. #begin script telnet xx.xx.xx.xx < inputfile.txt 0> outputfile.txt #end script The inputfile.txt would contain. Username Password Do this Do that The outputfile.txt would contain the results. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Toppenberg Sent: Tuesday, October 26, 2004 4:38 PM To: [EMAIL PROTECTED] Subject: Re: [Hardhats-members] Linux console as terminal emulator, with scripting? OK, I'm going to think out loud. Please let me know if I am off track. In my bash script, I will need to initiate a connection to my old (AIX) server. We're on a VPN, so are using telnet. #begin script telnet xx.xx.xx.xx echo "goodbyte" #end script The above script will not show "goodbye" until after the connection to the server is closed. This won't help. So I need to somehow control the input and output of the telnet program. Sounds like redirection is needed. #begin script telnet xx.xx.xx.xx > SomeScript < SomeScript echo "goodbyte" #end script The above should launch telnet as well as SomeScript, and put all output to SomeScript, and get all input from the same. But my question is, will this direct IO to a process, or will it overwrite SomeScript as a simple text file? Kevin --- 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!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo --- 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 --- 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_idU88&alloc_id065&op=click ___ Hardhats-members mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Linux console as terminal emulator, with scripting?
Kevin, If escape sequences are necessary to navigate, and if you don't know the escape sequences, then how will you write a script which contains all of the necessary characters? The following termcap segment came from www.blueemulations.com/e3151doc.shtml :f1=\Ea\r:f2=\Eb\r:f3=\Ec\r:f4=\Ed\r:f5=\Ee\r: :f6=\Ef\r:f7=\Eg\r:f8=\Eh\r:f9=\Ei\r:f10=\Ej\r: :f11=\Ek\r:f12=\El\r: :F1=\E!a\r:F2=\E!b\r:F3=\E!c\r:F4=\E!d\r:F5=\E!e\r: :F6=\E!f\r:F7=\E!g\r:F8=\Ew\r:F9=\E!i\r:F10=\E!j\r: :F11=\E!k\r:F12=\E!l\r: :^f1=\E"a\r:^f2=\E"b\r:^f3=\E"c\r:^f4=\E"d\r:^f5=\E"e\r: :^f6=\E"f\r:^f7=\E"g\r:^f8=\E"h\r:^f9=\Ei\r:^f10=\Ej\r: :^f11=\Ek\r:^f12=\El\r: -maury- - Original Message - From: "Kevin Toppenberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 26, 2004 4:07 PM Subject: Re: [Hardhats-members] Linux console as terminal emulator, with scripting? > Maury, > > I spent a full day a month or so ago trying to get > TeraTerm to work with our server, and finally gave up. > In order to navigate on the server, I have to use > F1-F12 keys. I spent a long time trying to figure out > the escape sequences that should be sent when F1 etc > is pressed, but couldn't ever get it to work. I know > that key mapping would allow for any arbitrary > sequence to be sent when a key is pressed. But again, > I couldn't figure out what they should be. > > Thanks > Kevin > > > --- Maury Pepper <[EMAIL PROTECTED]> wrote: > > > Kevin, > > > > What problem are you having with TeraTerm? > > For scripting, terminal type usually isn't an issue. > > The keyboard config file allows for redefining most > > of the keys. (I can help > > with this.) > > It also has TEK4010 emulation which perhaps your > > system can handle. > > > > > > > > - Original Message - > > From: "Kevin Toppenberg" <[EMAIL PROTECTED]> > > To: "Hardhats Sourceforge" > > <[EMAIL PROTECTED]> > > Sent: Tuesday, October 26, 2004 1:22 PM > > Subject: [Hardhats-members] Linux console as > > terminal emulator, with > > scripting? > > > > > > > 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 --- 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
RE: [Hardhats-members] Linux console as terminal emulator, with scripting?
Kea! Does have a scripting language that allows just that option. Something like if the last string received is "Hit and Key to continue" then Kea! Will insert a carriage return. However, I have found all terminal emulators to have their own script language, everything from Basic based to Java based, but never quite the same. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Toppenberg Sent: Tuesday, October 26, 2004 2:23 PM To: Hardhats Sourceforge Subject: [Hardhats-members] Linux console as terminal emulator, with scripting? 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 --- 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_idU88&alloc_id065&op=click ___ Hardhats-members mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Linux console as terminal emulator, with scripting?
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
Re: [Hardhats-members] Linux console as terminal emulator, with scripting?
Maury, I spent a full day a month or so ago trying to get TeraTerm to work with our server, and finally gave up. In order to navigate on the server, I have to use F1-F12 keys. I spent a long time trying to figure out the escape sequences that should be sent when F1 etc is pressed, but couldn't ever get it to work. I know that key mapping would allow for any arbitrary sequence to be sent when a key is pressed. But again, I couldn't figure out what they should be. Thanks Kevin --- Maury Pepper <[EMAIL PROTECTED]> wrote: > Kevin, > > What problem are you having with TeraTerm? > For scripting, terminal type usually isn't an issue. > The keyboard config file allows for redefining most > of the keys. (I can help > with this.) > It also has TEK4010 emulation which perhaps your > system can handle. > > > > - Original Message - > From: "Kevin Toppenberg" <[EMAIL PROTECTED]> > To: "Hardhats Sourceforge" > <[EMAIL PROTECTED]> > Sent: Tuesday, October 26, 2004 1:22 PM > Subject: [Hardhats-members] Linux console as > terminal emulator, with > scripting? > > > > 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 > > > > > > --- > 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
RE: [Hardhats-members] Linux console as terminal emulator, with scripting?
You should be able to remote shell (rsh) into the mahine. Ex. rsh To do the same thing Thank you, Marc Aylesworth Health Specialist Technician Oneida Indian Nation 223 Genesee Street Oneida, New York 13421 (315) 829-8909 This electronic transmission is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. You are also requested to please notify the sender immediately by e-mail and delete the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Toppenberg Sent: Tuesday, October 26, 2004 4:38 PM To: [EMAIL PROTECTED] Subject: Re: [Hardhats-members] Linux console as terminal emulator, with scripting? OK, I'm going to think out loud. Please let me know if I am off track. In my bash script, I will need to initiate a connection to my old (AIX) server. We're on a VPN, so are using telnet. #begin script telnet xx.xx.xx.xx echo "goodbyte" #end script The above script will not show "goodbye" until after the connection to the server is closed. This won't help. So I need to somehow control the input and output of the telnet program. Sounds like redirection is needed. #begin script telnet xx.xx.xx.xx > SomeScript < SomeScript echo "goodbyte" #end script The above should launch telnet as well as SomeScript, and put all output to SomeScript, and get all input from the same. But my question is, will this direct IO to a process, or will it overwrite SomeScript as a simple text file? Kevin --- 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!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo --- 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 --- 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_idU88&alloc_id065&op=click ___ Hardhats-members mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Linux console as terminal emulator, with scripting?
OK, I'm going to think out loud. Please let me know if I am off track. In my bash script, I will need to initiate a connection to my old (AIX) server. We're on a VPN, so are using telnet. #begin script telnet xx.xx.xx.xx echo "goodbyte" #end script The above script will not show "goodbye" until after the connection to the server is closed. This won't help. So I need to somehow control the input and output of the telnet program. Sounds like redirection is needed. #begin script telnet xx.xx.xx.xx > SomeScript < SomeScript echo "goodbyte" #end script The above should launch telnet as well as SomeScript, and put all output to SomeScript, and get all input from the same. But my question is, will this direct IO to a process, or will it overwrite SomeScript as a simple text file? Kevin --- 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!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo --- 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
Re: [Hardhats-members] Linux console as terminal emulator, with scripting?
Kevin, What problem are you having with TeraTerm? For scripting, terminal type usually isn't an issue. The keyboard config file allows for redefining most of the keys. (I can help with this.) It also has TEK4010 emulation which perhaps your system can handle. - Original Message - From: "Kevin Toppenberg" <[EMAIL PROTECTED]> To: "Hardhats Sourceforge" <[EMAIL PROTECTED]> Sent: Tuesday, October 26, 2004 1:22 PM Subject: [Hardhats-members] Linux console as terminal emulator, with scripting? > 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 > --- 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