Autologout of unused terminals

Vincent C. Hatem vch at attibr.UUCP
Thu Dec 1 01:23:09 AEST 1988


In article <83 at cosmic.sns.UUCP>, holgi at sns.UUCP (Holger Kollmer) writes:
# In article <201.nlunix6 at orcenl.uucp> bengsig at orcenl.uucp (Bjorn Engsig) writes:
# #Is there any way to see if a terminal has not been used for some time,
# #and if it hasn't, to send a hangup to the processes there?  We are looking
# 
# You can make stat(2) on the tty. That system call returns st_mtime and 
# st_atime which shows the last access and modification time. 

You could also use 'who -u' (on Sys V), which tells the idle time...

-- 
Vincent C. Hatem                            | att ---->\ (available from any
AT&T International                          | ulysses ->\ Action Central site)
International Operations Technical Support  | bellcore ->\___ !attibr!vch
1200 Mt Kemble Ave, Basking Ridge, NJ 07920 | (201) 953-8030



More information about the Comp.unix.wizards mailing list