Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to disable the CTRL + C in a Unix Shell script ?

Status
Not open for further replies.

ppc12345

Programmer
Jul 15, 2004
2
BE
I'm using a Sun Solaris System and try to avoid users quitting a shell scrit menu by typing CTRL + C (returning to OS level).

Thanks a lot !
 
man stty

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
In KornShell, as your first line:

Code:
trap "" QUIT INT HUP

Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top