Re: Script to sort file by access time



yannick.dhennin@xxxxxxxxx wrote:
Barry Margolin a écrit :
In article <1163087221.491720.98960@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Janis" <janis_papanagnou@xxxxxxxxxxx> wrote:
yannick.dhennin@xxxxxxxxx wrote:
Hi,

thanks for your answers.

the problem is when I'm doing ls -ltu or stat command the access time
is modified at the time the command is done.

Is it possible to have access to tha access time information of a file
without modify it ?

As has been said, if you compare ordinary files:
"The atime does not change by an ls or stat command."

If in your case that's different you have to provide more information
about your environment, and show what you've exactly done and what
exactly the results have been.

When I saw his first post, my thought was that one of the files he's
listing is the script itself. Executing the script will indeed update
the atime of the script -- the shell has to read the script to execute
it.


Hi,

The script is done for cygwin environement. It can explain why the
access-time is update.

No, that doesn't, per se, explain anything.
'ls -ltu' works for me with bash on Cygwin as expected.

To repeat what I said: "[...] and show what you've exactly done and
what exactly the results have been."

Janis


Yannick.

.



Relevant Pages

  • Re: Script to sort file by access time
    ... the problem is when I'm doing ls -ltu or stat command the access time ... is modified at the time the command is done. ... Is it possible to have access to tha access time information of a file ... Executing the script will indeed update ...
    (comp.unix.shell)
  • Re: Script to sort file by access time
    ... the problem is when I'm doing ls -ltu or stat command the access time ... is modified at the time the command is done. ... Is it possible to have access to tha access time information of a file ... Executing the script will indeed update ...
    (comp.unix.shell)
  • Re: Script to sort file by access time
    ... Is it possible to have access to tha access time information of a file ... "The atime does not change by an ls or stat command." ... I have a problem to develop a script that sort files by access time. ... The atime does not change by an ls or stat command. ...
    (comp.unix.shell)
  • Re: Script to sort file by access time
    ... Is it possible to have access to tha access time information of a file ... I have a problem to develop a script that sort files by access time. ... The atime does not change by an ls or stat command. ...
    (comp.unix.shell)
  • Re: Problems trying to configure Linux laptop to print to Windows XP shared printer
    ... map to guest = Never ... check password script = ... enumports command = ... ldap delete dn = No ...
    (comp.os.linux.setup)