Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!pacbell!att!occrsh!jal From: jal@occrsh.ATT.COM (J_Allen_Schones) Newsgroups: comp.unix.wizards Subject: Re: Uses for access time Summary: Works on SYS V, Rel 3.1.2 3B2 Message-ID: <276@occrsh.ATT.COM> Date: 17 May 88 16:08:33 GMT References: <3672@lynx.UUCP> <8726@oberon.USC.EDU> <4876@cup.portal.com> <4054@mtgzz.UUCP> <1029@unmvax.unm.edu> Reply-To: jal@occrsh.UUCP (J_Allen_Schones) Distribution: na Organization: AT&T Network & Data Systems, OKC Lines: 70 In article <1029@unmvax.unm.edu> mike@turing.UNM.EDU.UUCP (Michael I. Bushnell) writes: >In article <4054@mtgzz.UUCP> avr@mtgzz.UUCP (XMRP50000[jcm]-a.v.reed) writes: > >>Unfortunately, "access time" is NOT updated when an executable is >>executed. > >[Sad story deleted] > >Put this down to YATBF (Yet Another Thing Berkeley Fixed). On BSD >4.3, execve properly updates the access time. [ .signature deleted ] I have removed all newsgroups except comp.unix.wizards. I'm certain the vms and misc folks don't care to hear about this. As the summary states, the access time under System V, Rel 3.1.2 on a 3B2 is updated when the program is executed. BTW, I am runngin ksh. The following script shows my point. $ lf ./ ../ $ echo 'echo "This is a test"' > foobar1 $ echo "this file will be catted out" > foobar2 $ lf ./ ../ foobar1 foobar2 $ chmod 755 foobar1 $ type la la is an alias for /bin/ls -lasiqut $ la total 5 4923 1 -rw-r--r-- 1 jal engr 29 May 17 11:04 foobar2 315 1 -rwxr-xr-x 1 jal engr 22 May 17 11:03 foobar1 1215 2 drwxr-xr-x 9 jal engr 576 May 17 10:17 .. 1452 1 drwxrwxrwx 2 jal engr 112 May 4 15:06 . $ foobar1 This is a test $ la # Now foobar1 is the first file printed out. total 5 315 1 -rwxr-xr-x 1 jal engr 22 May 17 11:04 foobar1 4923 1 -rw-r--r-- 1 jal engr 29 May 17 11:04 foobar2 1215 2 drwxr-xr-x 9 jal engr 576 May 17 10:17 .. 1452 1 drwxrwxrwx 2 jal engr 112 May 4 15:06 . $ chown bin foobar1 # Was it because I owned foobar1? $ cat foobar2 this file will be catted out $ la # Now foobar2 is the first file printed out. total 5 4923 1 -rw-r--r-- 1 jal engr 29 May 17 11:04 foobar2 315 1 -rwxr-xr-x 1 bin engr 22 May 17 11:04 foobar1 1215 2 drwxr-xr-x 9 jal engr 576 May 17 10:17 .. 1452 1 drwxrwxrwx 2 jal engr 112 May 4 15:06 . $ foobar1 This is a test $ la # Now foobar1 is the first file printed out. total 5 315 1 -rwxr-xr-x 1 bin engr 22 May 17 11:05 foobar1 4923 1 -rw-r--r-- 1 jal engr 29 May 17 11:04 foobar2 1215 2 drwxr-xr-x 9 jal engr 576 May 17 10:17 .. 1452 1 drwxrwxrwx 2 jal engr 112 May 4 15:06 . $ exit Process shell finished Sorry for the length of the article. -- J. Allen Schones -- AT&T -- Oklahoma City Works MAIL: 7725 W. Reno -- Oklahoma City, OK -- 73126-0060 -- Dept: 11OC0307720 PHONE: (405) 491-4950 | UUCP: {AT&T}!{okcedu|occrsh}!jal FAX: (405) 491-4530 Attn: Schones 0772 x4950