Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!ohstpy!miavx1!pemurray From: pemurray@miavx1.acs.muohio.edu (Peter Murray) Newsgroups: comp.unix.questions Subject: Re: Preventing Idle in telnet Message-ID: <2399.26fde5fb@miavx1.acs.muohio.edu> Date: 24 Sep 90 15:54:50 GMT References: <85234@aerospace.AERO.ORG> Lines: 35 In article <85234@aerospace.AERO.ORG>, huebner@aerospace.aero.org (Robert E. Huebner) writes: > Looking for advice on how to solve the following problem in UNIX: > > I need to find a way to alter telnet so that it will automatically > send characters periodically if the user is idle. The specific case > is one where I am using telnet on a Sun to connect to a remote Multics. > The Multics has a "feature" which automatically logs me out if idle > time exceeds 30 minutes, even if processes are running. Is there some > way to have telnet type a ^G sequence or something whenever idle time > exceeds 25 minutes? Or is there a more elegant solution to this > problem. I have no Multics experience, so I'd like to make the fix from > the Sun/telnet end of things. > > Thank you for your time, What you can do is write a small C program to send a space and a backspace every 25 minutes. Something like: main() { while (1) { sleep(1500); printf("\033[OC\033[OD"); fflush(stdout); } } And then start it in the background. Peter -- Peter Murray Neat UNIX Stunts #3: pemurray@miavx1.bitnet 176 Thompson Hall csh> sleep with me pmurray@apsvax.aps.muohio.edu Oxford, OH 45056 NeXT Mail: pmurray@next4.acs.muohio.edu