From owner-freebsd-questions Fri Mar 7 22:57:20 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA27680 for questions-outgoing; Fri, 7 Mar 1997 22:57:20 -0800 (PST) Received: from cottontail.hobart.tased.edu.au (root@cottontail.hobart.tased.edu.au [147.41.41.147]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id WAA27669 for ; Fri, 7 Mar 1997 22:57:07 -0800 (PST) Received: from localhost (andrew@localhost) by cottontail.hobart.tased.edu.au (8.6.12/8.6.12) with SMTP id RAA14535 for ; Sat, 8 Mar 1997 17:57:03 +1100 X-Authentication-Warning: cottontail.hobart.tased.edu.au: andrew owned process doing -bs Date: Sat, 8 Mar 1997 17:57:03 +1100 (EST) From: Andrew X-Sender: andrew@cottontail.hobart.tased.edu.au To: freebsd-questions@freebsd.org Subject: File access times and filetest -A Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, This probably isnt very FreeBSD specific but: In tcsh I type: mopsy~>filetest -A fred 857803867 mopsy~>more fred sdsfss mopsy~>filetest -A fred 857803867 The access time hasn't gone up despite the fact that I mored the file. man stat (I assume it is stat that is being used) says: st_atime Time when file data last accessed. Changed by the mknod(2), utimes(2) and read(2) system calls. Does more not use read? Is this jsut a bug? The real reason I'm asking is because I'm trying to write a script that comapres the access time of my mail file compared with its modification time so that I can tell if I have new mail. Thanks, Andrew