Guys, why is the atime not changing ? I use cat to read the file.. why the hell does the atime not change
is there some setting that I need to change ? Also, if I use read in my program, the atime does not change..
% uname -a
SunOS 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Fire-480R
% date
Sun Apr 8 17:32:09 PDT 2007
% vi file <--------------------------------------- just create a file
% ls -lu file
-rw-rw-r-- 1 varkm 15 Apr 8 17:32 file
<----- note the access time
% date
Sun Apr 8 17:35:45 PDT 2007
% cat file
This is a file
% ls -lu file
-rw-rw-r-- 1 varunj 15 Apr 8 17:32 file
<---- acc time did not change
%
Now whats weird is that If i do the same thing on a GNU/Linux machine, the cat changes the access time the first time. Any cat after that does not change the atime.
Please help.. I have been breaking my head over this since a long time
Thanks in advance !!!