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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'Ctrl+C' Interrupt not terminating shell session

Status
Not open for further replies.

jseva

IS-IT--Management
Mar 26, 2001
26
US
I created a /bin/STARTUP file that starts up a proprietary utility. Within the utility, when hitting Ctrl+C, it's taking me to the $ prompt. This is a security issue. What can I do so that when hitting Ctrl+C, the session will end, and the user will be logged out of AIX completely??

Please advise.

Thanks!
 
You can use something like:

stty intr \222

in .profile or wherever to disable the Ctrl-C combination and reset the interrupt to something a user isn't likely to press by mistake.

HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top