.suffile/.logout in ksh (affects TIMEOUT?)

Jerry Peek jdpeek at RODAN.ACS.SYR.EDU
Sat Jun 3 14:53:50 AEST 1989


In two articles, people have written things like:
+ >KSH Has a timeout feature that will log you out after so many seconds
+ >of idle time if your TIMEOUT (or TMOUT, i forget) is set.  I've been
+ >told that doing this trap will prevent this timeout from working.
+ >Is this true?  Why?  Bug or Feature?  Is it avoidable?
+ 
+ No, that is not true; the shell exits after TMOUT seconds of idle time
+ (+60 sec grace), and the trap is taken correctly when it exits.

I had the problem with an old Korn Shell (before ksh-i) running under 4.3BSD
on a VAX 780.  It's been too long ago to remember.  But I think the shell
would either hang and not log out or give some error message without doing
the commands in the trap.  Sorry -- I can't remember more than that, and
I have ksh-i now.

--Jerry Peek; Syracuse University Academic Computing Services; Syracuse, NY
  jdpeek at rodan.acs.syr.edu, jdpeek at suvm.bitnet
  +1 315 443-3995



More information about the Comp.unix.questions mailing list