SUMMARY: disable ^C

From: Riggs, Joan <JRiggs_at_kls.usaka.smdc.army.mil>
Date: Wed, 09 Jan 2002 10:02:05 +1200

Mike Mehall had the solution that worked for me:
 
At the top (the first line) put this entry in the profile:
 
trap "" 2 3
 
At the end (the very last line) put this entry:
 
trap 2 3
 
This will disable <ctrl - c> during the login process. If you want the
disable of <ctrl - c> to continue for the whole login session, just omit the
last line "trap 2 3" from the profile. Hope this helps!
 
Other suggestions included:
 
Dan Harrington: If using the C shell (csh(1)), check out the onintr
built-in command. (did not try, not using C shell)
Michael Bucholtz: For ksh, stty intr ^- (this did not work for
me)
Salvador Ramirez: stty intr undef (if you want to use it again do a
"stty intr ^C") (did not try once I had a working solution)
 
Thanks, everyone, for such a quick response!
 
    Joan Riggs
 
 
 
-----Original Message-----
From: Riggs, Joan [mailto:JRiggs_at_kls.usaka.smdc.army.mil]
Sent: Wednesday, January 09, 2002 8:58 AM
To: tru64-unix-managers_at_ornl.gov
Subject: disable ^C



I have a need to disable ^C in certain user's profiles ... it seems like it
should be something simple?
 
    Thanks in advance!
 
 
Received on Tue Jan 08 2002 - 22:03:33 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT