Path: utzoo!news-server.csri.toronto.edu!rutgers!uwm.edu!cs.utexas.edu!uunet!tiamat!jim From: jim@tiamat.fsc.com ( IT Manager) Newsgroups: comp.sys.hp Subject: Re: How to stop windows from timing out Message-ID: <807@tiamat.fsc.com> Date: 9 Mar 91 16:38:35 GMT References: <17127@lanl.gov> Organization: Ahlstrom Filtration - Chattanooga,TN Lines: 27 In article <17127@lanl.gov>, bxb@lanl.gov (Barry J. Berenberg) writes: > HP-UX 7.03, X11R4 on a 9000/300... > > My windows have this annoying habit of killing themselves > if they are inactive for some length of time (something > like 30 mins, but I'm not sure). If these are "hpterm" windows with "ksh" running in them you probably have an environment variable TMOUT set to some non-zero value. If "echo $TMOUT" produces something other than 0 (or an error message), then the ksh will exit after $TMOUT seconds without activity (activity == input, I think). I seem to recall that the default *profile files under HPUX set this value to something non-zero. We've been using TMOUT as an idle-out feature, but it is a pain under X, so I find myself doing "TMOUT=0" as the first thing in each window. Is there a nifty way for a ksh to figure out that it is running in a window? (Assuming you ran something like "hpterm -ls". The shell started by doing "hpterm -e rlogin remotehost" probably has no chance of figuring out it's in a window.) ------------- James B. O'Connor jim@tiamat.fsc.com Ahlstrom Filtration, Inc. 615/821-4022 x. 651