tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* TMOUT variable in ksh
@ 1998-05-28 20:03 Matt Moore
  0 siblings, 0 replies; only message in thread
From: Matt Moore @ 1998-05-28 20:03 UTC (permalink / raw)
  To: tru64-unix-managers


Please excuse me if this is a dumb question but I'm not a big korn
shell user... I'm having trouble getting the TMOUT variable to work
from .profile. If I type TMOUT=60 at the shell prompt it works as
advertised and exits the shell in 60 seconds, however if I put the
same line in .profile (whether exported or not) it seems to be ignored
and the variable is set to zero. I also tried setting the variable in
.kshrc and using ENV=$HOME/.kshrc in .profile to no avail. However if
type . .kshrc it works. What I would ultimately like to do is use this in 
a menu script but my attempts so far have failed, such as:

#!/bin/ksh
TMOUT=3600
export TMOUT
while :
do
 read something
done

Am I reading the manual pages and not understanding what they are saying?
Or is there a better way of doing this?  BTW - ksh IS the default shell
and all the other stuff I'm doing in .profile and .kshrc is working. 
Thanks for all your help.

-----------------------------------------------------------------------
Matt Moore    N3LPH                      Bucks County Community College
E-mail: moorem@bucks.edu                  Swamp Road  Newtown PA  18940
-----------------------------------------------------------------------
Windows 95:  A 32-bit patch for a 16-bit GUI shell running on top of an
8-bit operating system written for a 4-bit processor by a 2-bit company
who cannot stand 1 bit of competition.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-05-28 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-28 20:03 TMOUT variable in ksh Matt Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox