Autologout of unused terminals

Holger Kollmer holgi at sns.UUCP
Fri Nov 25 03:56:17 AEST 1988


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. 


-- 
Holger Kollmer		uucp: uunet!mcvax!unido!sns!holgi
			"Document UN*X, Are You Kidding ?"



More information about the Comp.unix.wizards mailing list