Path: utzoo!attcan!uunet!mcvax!unido!sns!holgi From: holgi@sns.UUCP (Holger Kollmer) Newsgroups: comp.unix.wizards Subject: Re: Autologout of unused terminals Message-ID: <83@cosmic.sns.UUCP> Date: 24 Nov 88 17:56:17 GMT References: <201.nlunix6@orcenl.uucp> Reply-To: holgi@sns.UUCP (Holger Kollmer) Organization: Stuttgarter Net System, FRG Lines: 11 In article <201.nlunix6@orcenl.uucp> bengsig@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 ?"