Path: utzoo!utgpu!watmath!clyde!att!ulysses!attibr!vch From: vch@attibr.UUCP (Vincent C. Hatem) Newsgroups: comp.unix.wizards Subject: Re: Autologout of unused terminals Summary: more... Message-ID: <74@attibr.UUCP> Date: 30 Nov 88 15:23:09 GMT References: <201.nlunix6@orcenl.uucp> <83@cosmic.sns.UUCP> Organization: AT&T International, Basking Ridge, NJ Lines: 15 In article <83@cosmic.sns.UUCP>, holgi@sns.UUCP (Holger Kollmer) writes: # 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. 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