Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!ucbvax!AEDC-VAX.AF.MIL!mcdonald From: mcdonald@AEDC-VAX.AF.MIL Newsgroups: comp.sys.sgi Subject: TRAPPING SIGNALS IN CSH Message-ID: <9104242103.AA11863@ccfiris.aedc> Date: 24 Apr 91 21:03:35 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 18 I have implemented a password aging scheme in our NIS environment. The way I am checking password dates to see if a password has expired is with a c-prog that I want to execute in /etc/profile & /etc/cshrc. If the password has expired then I exec my yppasswd changer and force the user to change his password. My problem arises when the user hits Ctrl-C when he first logs in which kills the execution of /etc/cshrc, thus my expiration checker does not get executed. How can I trap these signals in a csh? In a Bourne shell all I have to do is trap them with the trap command. vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | Kenneth M. McDonald * OAO Corp * Arnold Engineering Development Center | | MS 120 * Arnold AFS, TN 37389-9998 * (615) 454-3413 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INTERNET: mcdonald@aedc-vax.af.mil LOCAL: c60244@ccfiris