Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15424

Re: file access time and file modification time

From Mischa Baars <mjbaars1977.bug-bash@cyberfiber.eu>
Newsgroups gnu.bash.bug
Subject Re: file access time and file modification time
Date 2019-09-24 09:04 +0200
Message-ID <mailman.968.1569308721.2190.bug-bash@gnu.org> (permalink)
References <E1hkO5H-0002vY-Ln@filter02.totaalholding.nl> <20190708092807.02edd68a60130b89a7775425@plushkava.net> <434b64df9db77998d977c2cf25e89005962e3cdb.camel@cyberfiber.eu>

Show all headers | View raw


Hi Kerin,

That indeed solves the problem in 'accesstime.sh', although I would
recommend some sort of reference from the bash manpage to the mount
manpage.

Did you have a look at the 'conditional.sh' script too? Looks like the
'-N' switch compares only the integer part of the timestamp seconds.

Regards,
Mischa.

On Mon, 2019-07-08 at 09:28 +0100, kfm@plushkava.net wrote:
> On Mon, 08 Jul 2019 09:29:19 +0200
> "mjbaars1977.bug-bash" <mjbaars1977.bug-bash@cyberfiber.eu> wrote:
> 
> > Hi,I'm having some difficulties with the file access time and the
> > file modification time. Scripts are attached for your
> > convenience.Regards,Mischa Baars.Sent from my Samsung Galaxy
> > smartphone.
> 
> If you are using Linux, you should be aware that it defaults to using
> "relatime", meaning that atimes are only updated under certain
> circumstances. The correct (POSIX compliant) behaviour is achieved by
> mounting the filesystem with the "strictatime" option. See 
> http://man7.org/linux/man-pages/man8/mount.8.html for further
> information.
> 

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: file access time and file modification time Mischa Baars <mjbaars1977.bug-bash@cyberfiber.eu> - 2019-09-24 09:04 +0200

csiph-web