Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2001 14:43:17 -0700
From:      Kemp Petersen <kempp@bigfoot.com>
To:        freebsd-questions@freebsd.org
Subject:   file access time not modified?
Message-ID:  <3B12C675.48AB1B29@bigfoot.com>

next in thread | raw e-mail | index | archive | help
It appears that access times of a binary executable are not modified
when executing it, whereas access time of a shell script is modified
when the script is executed.  Is there any way to enforce behavior
similar to other OSs (Sun, AIX, HP-UX, ...) and have file access
times modified when executing a binary?

FreeBSD 4.3-Release
% /bin/date
Mon May 28 00:25:57 PDT 2001
% ls -lu /bin/date
-r-xr-xr-x  1 root  wheel  188856 Apr 21 02:05 date
% file /bin/date
/bin/date: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD),
statically linked, stripped
% 
% ls -lu /usr/bin/groups
-r-xr-xr-x  1 root  wheel  1977 May 28 00:20 groups
% date
Mon May 28 00:26:12 PDT 2001
% /usr/bin/groups
operator staff
% ls -lu /usr/bin/groups
-r-xr-xr-x  1 root  wheel  1977 May 28 00:26 groups
% file /usr/bin/groups
/usr/bin/groups: Bourne shell script text executable


AIX 4.3
% date
Mon May 28 00:23:44 PDT 2001
% ls -lu date
-r-xr-xr-x   1 bin      bin        11424 May 28 00:23 date

SunOS 5.7
% date
Mon May 28 00:39:05 PDT 2001
% ls -lu date
-r-xr-xr-x   1 root         8248 May 28 00:39 date

Thanks!
-Kemp

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B12C675.48AB1B29>