TRAPPING SIGNALS IN CSH

mcdonald at AEDC-VAX.AF.MIL mcdonald at AEDC-VAX.AF.MIL
Thu Apr 25 07:03:35 AEST 1991


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 at aedc-vax.af.mil

  LOCAL:
  c60244 at ccfiris



More information about the Comp.sys.sgi mailing list