Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

restriction of contol keys in unix script

This is a discussion on restriction of contol keys in unix script within the Unix/Linux forums, part of the Operating Systems category; 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 ...

Go Back   Geeks Talk > Operating Systems > Unix/Linux
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 02-12-2007
Junior Member
 
Join Date: Feb 2007
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
sameer_adarkar is on a distinguished road
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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-19-2007
Expert Member
 
Join Date: Sep 2006
Location: India
Posts: 131
Thanks: 1
Thanked 21 Times in 20 Posts
Innila is on a distinguished road
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 ***
Reply With Quote
The Following User Says Thank You to Innila For This Useful Post:
  #3 (permalink)  
Old 02-19-2007
Junior Member
 
Join Date: Feb 2007
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
sameer_adarkar is on a distinguished road
Re: restriction of contol keys in unix script

Hi Mangai,

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

Regards,
Reply With Quote
Reply

  Geeks Talk > Operating Systems > Unix/Linux

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
QTP - VB script aromalis QTP 7 10-11-2007 10:37 AM
Using Soft Keys in QTP JobHelper QTP 3 04-30-2007 01:14 PM
qtp script problem ferozbm QTP 5 02-20-2007 09:19 AM
Script Error sharifhere Unix/Linux 2 01-16-2007 06:38 AM
how to importforiegn keys .......... yagnkan Testing Issues 0 10-29-2006 02:35 PM


All times are GMT -4. The time now is 11:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved