hi all
this is not a syntax question...
can anyone explain why it is when I use the following find command it does not remove the archive files older than 14 days ? I know it is because the files have been accessed < 14 days ago, but I don't understand how the access time is changing on the files....
find /usr/lpp/log/archive -name "*.log*" -atime +14 -exec \rm {} \;
this command is run daily as a cronjob
There are files older than 14 days (ls -l) in this directory, but when I run ls -ul I find that the last accessed time = date the cron job ran
I know the find command will change the access time of directories supplied as pathnames, but why does this affect the contents of the directory also ?
cheers
this is not a syntax question...
can anyone explain why it is when I use the following find command it does not remove the archive files older than 14 days ? I know it is because the files have been accessed < 14 days ago, but I don't understand how the access time is changing on the files....
find /usr/lpp/log/archive -name "*.log*" -atime +14 -exec \rm {} \;
this command is run daily as a cronjob
There are files older than 14 days (ls -l) in this directory, but when I run ls -ul I find that the last accessed time = date the cron job ran
I know the find command will change the access time of directories supplied as pathnames, but why does this affect the contents of the directory also ?
cheers