Results 1 to 3 of 3

Thread: restriction of contol keys in unix script

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Answers
    2

    restriction of contol keys in unix script

    Hi All,

    I'm in process of writing one menu program in unix (solaris). That unix script is almost finished. Generally, exit option is provide in all the menu program to toggle between the sub-menus. I don't want to provide any prompt to operators. If operator press any "control" keys (control-c) to abort the script, it will provide a prompt to operator.
    So require some input from your side, so that I can restrict the operators to come out of the running script by pressing any "control" keys.

    Thanks & regards,
    Sam


  2. #2
    Expert Member
    Join Date
    Sep 2006
    Answers
    130

    Re: restriction of contol keys in unix script

    Hi Sam,

    I had changed the status of control key for erasing a character when i used to work in UNIX.
    Since im not working with UNIX currently, im unable to check, but
    stty command should help u.

    stty -a command shows you the current assignments of the control charaters.
    Check for Ctrl-C & try to change the existing control.
    Hopefully this helps u.

    *** Mangai Varma ***


  3. #3
    Junior Member
    Join Date
    Feb 2007
    Answers
    2

    Re: restriction of contol keys in unix script

    Hi Mangai,

    Thanx a lot for a valuable suggestion. I will try in my script.

    Regards,


  4.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact