Re: Script to sort file by access time
- From: Barry Margolin <barmar@xxxxxxxxxxxx>
- Date: Thu, 09 Nov 2006 20:20:28 -0500
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.
--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.
- Follow-Ups:
- Re: Script to sort file by access time
- From: yannick . dhennin
- Re: Script to sort file by access time
- References:
- Script to sort file by access time
- From: yannick . dhennin
- Re: Script to sort file by access time
- From: Michael Tosch
- Re: Script to sort file by access time
- From: Stephane CHAZELAS
- Re: Script to sort file by access time
- From: yannick . dhennin
- Re: Script to sort file by access time
- From: Janis
- Script to sort file by access time
- Prev by Date: Re: ex?
- Next by Date: Re: script to rename files
- Previous by thread: Re: Script to sort file by access time
- Next by thread: Re: Script to sort file by access time
- Index(es):
Relevant Pages
|