I would like auto-logout some terminal sessions with a TMOUT (timeout) configuration, but in that case the users leave a program opened for which the 'unbusy' sign is the ZERO I/O between server and terminal.

I would like to query the 'unbusy' terminals, to apply some logic of exceptions, such as which kind of program is running, how long it has been running, and the source IP (telnet/ssh).

Is that possible? How?

  • What do you mean by “I/O between server and terminal”? Is this only about users connected over SSH, and I/O on the SSH connection? – Gilles Sep 15 '15 at 21:46
  • No. Some pts can be connected from telnet, also. And others can be real tty (physical ports RS232). – Luciano Sep 15 '15 at 22:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.