hi there just want to ask if i can set a TMOUT for the application. right now i have tested only on Korn shell but no luck when the session was inside the application.
Any recommendation?
It'll depend on the application. If the application itself is shell-like, it may have its own version of TMOUT. UniVerse, for example, has the AUTOLOGOUT setting. Similar to KornShell, though, in uniVerse the logout timer is not in effect when an application is running (interpreted by uvsh).
If idle application settings don't output to the screen, you could use a script that checks the "idle" field of "who -u" and the "C PRI NI" fields of "ps l <pid>" to determine idle processes and, if you're really brave, take action. Automated killing of processes is tricky, scary, business, but having a script to identify individual processes for manual investigation isn't bad.
Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.