Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TMOUT

Status
Not open for further replies.

Midrange

Vendor
Aug 28, 2002
135
SG
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?

thanks in advance
 
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top