Preventing Idle in telnet
Peter Murray
pemurray at miavx1.acs.muohio.edu
Tue Sep 25 01:54:50 AEST 1990
In article <85234 at aerospace.AERO.ORG>, huebner at 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 at miavx1.bitnet
176 Thompson Hall csh> sleep with me pmurray at apsvax.aps.muohio.edu
Oxford, OH 45056 NeXT Mail: pmurray at next4.acs.muohio.edu
More information about the Comp.unix.questions
mailing list