AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
Expand all | Collapse all

How to test a function key function in a script shell ?

  • 1.  How to test a function key function in a script shell ?

    Posted 12/20/09 03:48 PM

    Originally posted by: CNAM-TS


    Hello,
    excuse for my english, I am french.

    In a script shell (bourne or korn), I want to test a function key like PF12.
    How to implement it in my script please?

    thank you in advance for your answers.
    #AIX-Forum


  • 2.  Re: How to test a function key function in a script shell ?

    Posted 12/26/09 04:26 PM

    Originally posted by: SystemAdmin


    It is problems such as this that I turn to either "C" or "expect". Both of these will allow you to get a keypress, and also have the advantage that the user does not have to press return. Calls to these can be easily added to a shell script.

    Be warned that you will also need to choose a good terminal emulator, or else the keypress will never be seen by the host.

    There is no problems with your English; I only wish my French were as good.
    #AIX-Forum